From: Andrey Miroshnikov Date: Mon, 18 Jul 2022 11:19:31 +0000 (+0000) Subject: tasyagle-install: Add env var for setting the install dir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61c2261494e455a8b1230b757946b597b5a660ae;p=tas-yagle.git tasyagle-install: Add env var for setting the install dir --- diff --git a/build.sh b/build.sh index c673269..764ca6c 100755 --- a/build.sh +++ b/build.sh @@ -45,8 +45,16 @@ popd # 'Install' -mkdir -p install -installDir="`pwd`/install" +if [ -z $installDir ]; +then + mkdir -p install + installDir="`pwd`/install" + echo "Not provided install dir, setting to: $installDir" +else + echo "Using provided install dir: $installDir" +fi + + mkdir -p ${installDir}/bin mkdir -p ${installDir}/share/tasyag/etc