tasyagle-install: Add env var for setting the install dir
authorAndrey Miroshnikov <andrey@technepisteme.xyz>
Mon, 18 Jul 2022 11:19:31 +0000 (11:19 +0000)
committerAndrey Miroshnikov <andrey@technepisteme.xyz>
Mon, 18 Jul 2022 11:19:31 +0000 (11:19 +0000)
build.sh

index c6732698b446e9783b404a08aa7b09b10557314c..764ca6c6d91efd18be6be74611494a915ff846f9 100755 (executable)
--- 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