better options

This commit is contained in:
Gambhiro 2015-12-10 18:16:46 +00:00
parent c11b2b4fc2
commit fe6a949e03

View File

@ -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