some tweaks for configRun: add -h/--usage option, use portable print instead of echo \c, etc.

This commit is contained in:
Douglas Mencken
2012-08-12 15:13:36 -06:00
committed by Jon Trulson
parent 7153a0e3e2
commit 2b8bd0743b
3 changed files with 39 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ HandleOption()
while [ $# -ne 0 ]; do
case $1 in
-e) OPERATION="configure"
shift;
shift;
;;
-d) OPERATION="deconfigure"
shift;
@@ -14,6 +14,12 @@ HandleOption()
-s) OPERATION="size"
shift;
;;
-h | --help | --usage) OPERATION="usage"
shift;
;;
*) OPERATION="usage"
shift;
;;
esac
done
}