From f7b572818c7617065ef0877870caee060db90a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 31 Oct 2021 00:06:02 +0100 Subject: 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. --- INSTALL | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'INSTALL') diff --git a/INSTALL b/INSTALL index 92ac1959..2e79030a 100755 --- a/INSTALL +++ b/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 -- cgit v1.2.3