[PATCH build 3/6] Add help options to usage.
Trevor Woerner
twoerner at gmail.com
Wed Sep 8 17:33:31 PDT 2010
From: Trevor Woerner <twoerner at gmail.com>
The -h and --help options were missing from the usage display.
Exit successfully from the usage display.
Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
build.sh | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/build.sh b/build.sh
index 2b41d00..25d0f04 100755
--- a/build.sh
+++ b/build.sh
@@ -739,6 +739,7 @@ usage() {
echo " -f file: append module being built to file. The last line of this"
echo " file can be used for resuming with -r."
echo " -g : build with debug information"
+ echo " -h | --help : display this help and exit successfully"
echo " -n : do not quit after error; just print error message"
echo " -o module/component : build just this component"
echo " -p : run git pull on each component"
@@ -793,13 +794,9 @@ while test $# != 0; do
export CFLAGS
CONFCFLAGS="CFLAGS=-g3 -O0"
;;
- -h)
+ -h|--help)
usage
- exit
- ;;
- --help)
- usage
- exit
+ exit 0
;;
-l)
LIB_ONLY=1
--
1.7.1
More information about the xorg-devel
mailing list