fix(build.sh): Move the avt_env script to conform with FHS rules
authorAndrey Miroshnikov <andrey@technepisteme.xyz>
Thu, 13 Oct 2022 13:20:28 +0000 (13:20 +0000)
committerAndrey Miroshnikov <andrey@technepisteme.xyz>
Thu, 13 Oct 2022 13:20:28 +0000 (13:20 +0000)
build.sh

index 0d4ae0a7de0cf54561d879806c85da8dcfe5485b..844dfb25be6b10fc62723556d5d89bb56c7ae47c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -69,6 +69,8 @@ done
 
 cp -r distrib/share/tcl ${installDir}/share/tasyag
 
-echo "AVERTEC_TOP=`pwd`/distrib/share" > "${installDir}/avt_env.sh"
-echo "PATH=`pwd`/distrib/bin"':${AVERTEC_TOP}/tcl:${PATH}' >> "${installDir}/avt_env.sh"
-echo 'export AVERTEC_TOP' >> "${installDir}/avt_env.sh"
+# Shell script for exporting the AVERTEC_TOP and PATH vars
+avtEnvScript = "${installDir}/bin/avt_env.sh"
+echo "AVERTEC_TOP=`pwd`/distrib/share" > "${avtEnvScript}"
+echo "PATH=`pwd`/distrib/bin"':${AVERTEC_TOP}/tcl:${PATH}' >> "${avtEnvScript}"
+echo 'export AVERTEC_TOP' >> "${avtEnvScript}"