mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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:
parent
e2a141ae09
commit
60607af425
1 changed files with 6 additions and 4 deletions
10
INSTALL
10
INSTALL
|
@ -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/"
|
||||
|
|
Loading…
Reference in a new issue