INSTALL: Support supplying multiple flags on the command line

In particular, this commit adds support for running

    ./INSTALL -c -r <path>
This commit is contained in:
B. Wilson 2023-02-27 21:39:46 +09:00
parent e2a141ae09
commit 60607af425
No known key found for this signature in database
GPG key ID: F4C835B25241AB4A

10
INSTALL
View file

@ -3,25 +3,27 @@
dobuild=true
doinstall=true
case "x$1" in
while [ "$#" -gt 0 ]; do case "x$1" in
x)
;;
x-b)
dobuild=true
doinstall=false
shift
;;
x-c)
dobuild=false
doinstall=true
shift
;;
x-r)
shift
PLAN9_TARGET=$1
PLAN9_TARGET=$2
shift 2
;;
*)
echo 'usage: INSTALL [-b | -c] [-r path]' 1>&2
exit 1
esac
esac; done
echo "+ Mailing list: https://groups.google.com/group/plan9port-dev"
echo "+ Issue tracker: https://github.com/9fans/plan9port/issues/"