From: Trevor Woerner <[email protected]>

The -h and --help options were missing from the usage display.
Exit successfully from the usage display.

Signed-off-by: Trevor Woerner <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to