Minor fixes in command line parser and options.

This commit is contained in:
Christoph Niethammer 2016-05-02 09:44:05 +00:00
parent e24d4ed21b
commit ea6f63a882

9
sit
View file

@ -17,7 +17,7 @@ SIT_USER_CONFIG_FILE=$HOME/.sit
function usage() { function usage() {
echo "Usage: $0 [action] <sit package name>" echo "Usage: $0 [action] <sit package name>"
echo "Valid actions:" echo "Valid actions:"
echo " sit_sitinfo" echo " sitinfo"
echo " unpack" echo " unpack"
echo " prepare" echo " prepare"
echo " configure" echo " configure"
@ -36,12 +36,9 @@ sit_classfile=""
# sit action to be performed # sit action to be performed
sit_action="all" sit_action="all"
while [ $1 != "" ] ; do while [ "$1" != "" ] ; do
case $1 in case $1 in
"sitinfo") "sitinfo"| \
sit_sitinfo
exit 0
;;
"all"| \ "all"| \
"unpack"| \ "unpack"| \
"prepare"| \ "prepare"| \