commit f7b572818c7617065ef0877870caee060db90a30 from: Sören Tempel via: Dan Cross date: Wed Jul 27 14:15:51 2022 UTC INSTALL: Always set PLAN9_TARGET environment variable That is, not only when -r was given. This allows using this veriable in mkfiles across the code base. commit - 005ee081d50b14a9a12a5b93f4a8760d7700e032 commit + f7b572818c7617065ef0877870caee060db90a30 blob - 92ac19593f6025f1024c384a7108ce1efd0cc6e8 blob + 2e79030ae3f470cc3303526ca3375cac87ad6ea8 --- INSTALL +++ INSTALL @@ -16,7 +16,7 @@ x-c) ;; x-r) shift - PLAN9_TARGET=$1 export PLAN9_TARGET + PLAN9_TARGET=$1 ;; *) echo 'usage: INSTALL [-b | -c] [-r path]' 1>&2 @@ -32,6 +32,9 @@ rm -f config PLAN9=`pwd` export PLAN9 PATH=/bin:/usr/bin:$PLAN9/bin:$PATH export PATH +[ -z "$PLAN9_TARGET" ] && PLAN9_TARGET="$PLAN9" +export PLAN9_TARGET + case `uname` in SunOS) awk=nawk blob - b22801958a685d5ce3946aea26ea9dbe74974fbd blob + 958b7135aeaac88a731e5132e7d9752a6d45e409 --- lib/moveplan9.sh +++ lib/moveplan9.sh @@ -12,7 +12,6 @@ case $# in exit 1 esac -[ -z "$PLAN9_TARGET" ] && PLAN9_TARGET="$PLAN9" new=`cleanname $PLAN9_TARGET` if [ X"$new" = X"" ]