mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 13:10:04 -05:00
better options
This commit is contained in:
parent
c11b2b4fc2
commit
fe6a949e03
@ -10,10 +10,9 @@ Options:
|
|||||||
|
|
||||||
-h --help
|
-h --help
|
||||||
|
|
||||||
-b --binary
|
--binary-only
|
||||||
-nb --nobinary
|
--source-only
|
||||||
-s --source
|
--source-and-binary
|
||||||
-ns --nosource
|
|
||||||
--signed
|
--signed
|
||||||
--unsigned"
|
--unsigned"
|
||||||
|
|
||||||
@ -36,12 +35,19 @@ OPT_SIGNED=1
|
|||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-b|--binary) OPT_BUILD_BINARY=1;;
|
--binary-only) OPT_BUILD_SOURCE=0
|
||||||
-nb|--nobinary) OPT_BUILD_BINARY=0;;
|
OPT_BUILD_BINARY=1
|
||||||
-s|--source) OPT_BUILD_SOURCE=1;;
|
;;
|
||||||
-ns|--nosource) OPT_BUILD_SOURCE=0;;
|
--source-only) OPT_BUILD_SOURCE=1
|
||||||
--signed) OPT_SIGNED=1;;
|
OPT_BUILD_BINARY=0
|
||||||
--unsigned) OPT_SIGNED=0;;
|
;;
|
||||||
|
--source-and-binary) OPT_BUILD_SOURCE=1
|
||||||
|
OPT_BUILD_BINARY=1
|
||||||
|
;;
|
||||||
|
--signed) OPT_SIGNED=1
|
||||||
|
;;
|
||||||
|
--unsigned) OPT_SIGNED=0
|
||||||
|
;;
|
||||||
-h|--help) echo "$USAGE"
|
-h|--help) echo "$USAGE"
|
||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user