STYLE: more consistent use of stderr for script usage

This commit is contained in:
Mark Olesen
2011-02-15 16:48:26 +01:00
parent 2873f9fc8d
commit f691fe7896
23 changed files with 56 additions and 33 deletions

View File

@ -33,8 +33,9 @@ packDir=$WM_PROJECT-$WM_PROJECT_VERSION
toolsDir="${0%/*}/tools" # this script is located in the tools/ parent dir
usage() {
while [ $# -gt 0 ]; do echo "$1" 1>&2; shift; done
cat <<USAGE 1>&2
exec 1>&2
while [ "$#" -gt 0 ]; do echo "$1"; shift; done
cat <<USAGE
Usage: ${0##*/} [OPTION]
options:
-o, -output <dir> specify alternative output directory