From: Andrey Miroshnikov Date: Thu, 13 Oct 2022 13:20:28 +0000 (+0000) Subject: fix(build.sh): Move the avt_env script to conform with FHS rules X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7f7f7d23acd79aa951f20026824876481595510;p=tas-yagle.git fix(build.sh): Move the avt_env script to conform with FHS rules --- diff --git a/build.sh b/build.sh index 0d4ae0a..844dfb2 100755 --- 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}"