[PATCH build 5/6] Report usage errors.

Trevor Woerner twoerner at gmail.com
Wed Sep 8 07:36:59 PDT 2010


From: Trevor Woerner <twoerner at gmail.com>

If the build script is invoked incorrectly, return non-zero
to indicate the usage error.

Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
 build.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/build.sh b/build.sh
index a01cb4c..9e74c28 100755
--- a/build.sh
+++ b/build.sh
@@ -839,7 +839,7 @@ done
 
 if test x"${PREFIX}" = x && test -z "$LISTONLY"; then
     usage
-    exit
+    exit 1
 fi
 
 if test -z "$LISTONLY"; then
-- 
1.7.1



More information about the xorg-devel mailing list