From a7f7f7d23acd79aa951f20026824876481595510 Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Thu, 13 Oct 2022 13:20:28 +0000 Subject: [PATCH] fix(build.sh): Move the avt_env script to conform with FHS rules --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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}" -- 2.30.2