[PATCH modular 2/4] build.sh: use the script name only, not the path in usage statement

Gaetan Nadon memsize at videotron.ca
Sat Dec 11 17:53:00 PST 2010

If invoked from $PREFIX you currently you get:
Usage: util/modular/build.sh [options] prefix

Where you should always get:
Usage: build.sh [options] prefix

The path name is not part of the usage. The GNU compiler and
associated tools do not use the path.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
 build.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/build.sh b/build.sh
index 93f2c14..b6f08d6 100755
--- a/build.sh
+++ b/build.sh
@@ -934,7 +934,7 @@ process_module_file() {
 usage() {
-    echo "Usage: $0 [options] prefix"
+    echo "Usage: build.sh [options] prefix"
     echo "  where options are:"
     echo "  -a : do NOT run auto config tools (autogen.sh, configure)"
     echo "  -b : use .build.$HAVE_ARCH build directory"

More information about the xorg-devel mailing list