mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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.
This commit is contained in:
parent
005ee081d5
commit
f7b572818c
2 changed files with 4 additions and 2 deletions
5
INSTALL
5
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
|
||||
|
|
|
@ -12,7 +12,6 @@ case $# in
|
|||
exit 1
|
||||
esac
|
||||
|
||||
[ -z "$PLAN9_TARGET" ] && PLAN9_TARGET="$PLAN9"
|
||||
new=`cleanname $PLAN9_TARGET`
|
||||
|
||||
if [ X"$new" = X"" ]
|
||||
|
|
Loading…
Reference in a new issue