diff --git a/scripts/compile-triton.sh b/scripts/compile-triton.sh index 91a98ac671..20e45caad4 100755 --- a/scripts/compile-triton.sh +++ b/scripts/compile-triton.sh @@ -3,8 +3,8 @@ set +o xtrace if [ ! -d "$BASE" ]; then echo "**** BASE is not given *****" - echo "**** Default BASE is set to /iusers/$USER ****" - BASE=/iusers/$USER + BASE=$(cd $(dirname "$0")/../.. && pwd) + echo "**** Default BASE is set to $BASE ****" fi export PACKAGES_DIR=$BASE/packages @@ -48,6 +48,9 @@ fi if [ ! -d "$PACKAGES_DIR" ]; then mkdir $PACKAGES_DIR fi +if [ $BASE != $HOME ]; then + ln -s $PACKAGES_DIR $HOME/packages +fi ############################################################################ # Download the Kronos SPIRV-Tools. diff --git a/scripts/test-triton.sh b/scripts/test-triton.sh index 10b57962c5..a80dd347cd 100755 --- a/scripts/test-triton.sh +++ b/scripts/test-triton.sh @@ -43,8 +43,8 @@ fi set +o xtrace if [ ! -d "$BASE" ]; then echo "**** BASE is not given *****" - echo "**** Default BASE is set to /iusers/$USER ****" - BASE=/iusers/$USER + BASE=$(cd $(dirname "$0")/../.. && pwd) + echo "**** Default BASE is set to $BASE ****" fi if [ "$VENV" = true ]; then