[PATCH modular 3/4] build.sh: new layout and updated text for options usage

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


------------------------------------------------------------------------------
Usage: build.sh [options] prefix
Options:
  -a          Do NOT run auto config tools (autogen.sh, configure)
  -b          Use .build.unknown build directory
  -c          Run make clean in addition to "all install"
  -D          Run make dist in addition to "all install"
  -d          Run make distcheck in addition "all install"
  -g          Compile and link with debug information
  -h, --help  Display this help and exit successfully
  -n          Do not quit after error; just print error message
  -o <module/component> Build just this <module/component>
  -p          Update source code before building (git pull --rebase)
  -s <sudo>   The command name providing superuser privilege
  --autoresume <file> Append module being built to, and autoresume from, <file>
  --check     Run make check in addition "all install"
  --clone     Clone non-existing repositories (uses $GITROOT if set)
  --cmd <cmd> Execute arbitrary git, gmake, or make command <cmd>
  --modfile <file> Only process the module/components specified in <file>

Usage: build.sh -L
  -L          List the components to build to stdout
------------------------------------------------------------------------------

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

diff --git a/build.sh b/build.sh
index b6f08d6..d72fa0b 100755
--- a/build.sh
+++ b/build.sh
@@ -934,27 +934,28 @@ process_module_file() {
 }
 
 usage() {
+#         |-----------------------------------------------------------------------------|
     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"
-    echo "  -c : run make clean in addition to others"
-    echo "  -D : run make dist in addition to others"
-    echo "  -d : run make distcheck in addition to others"
-    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"
-    echo "  -s sudo-command : sudo command to use"
-    echo "  --autoresume file : append module being built to, and autoresume from, 'file'"
-    echo "  --check : run make check in addition to others"
-    echo "  --clone : clone non-existing repositories (uses \$GITROOT if set)"
-    echo "  --cmd cmd : execute arbitrary git, gmake, or make command 'cmd'"
-    echo "  --modfile file : only process the module/components specified in 'file'"
+    echo "Options:"
+    echo "  -a          Do NOT run auto config tools (autogen.sh, configure)"
+    echo "  -b          Use .build.unknown build directory"
+    echo "  -c          Run make clean in addition to \"all install\""
+    echo "  -D          Run make dist in addition to \"all install\""
+    echo "  -d          Run make distcheck in addition \"all install\""
+    echo "  -g          Compile and link 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 <module/component>"
+    echo "  -p          Update source code before building (git pull --rebase)"
+    echo "  -s <sudo>   The command name providing superuser privilege"
+    echo "  --autoresume <file> Append module being built to, and autoresume from, <file>"
+    echo "  --check     Run make check in addition \"all install\""
+    echo "  --clone     Clone non-existing repositories (uses \$GITROOT if set)"
+    echo "  --cmd <cmd> Execute arbitrary git, gmake, or make command <cmd>"
+    echo "  --modfile <file> Only process the module/components specified in <file>"
     echo ""
-    echo "Usage: $0 -L"
-    echo "  -L : just list modules to build"
+    echo "Usage: build.sh -L"
+    echo "  -L          List the components to build to stdout"
     echo ""
     envoptions
 }
-- 
1.6.0.4



More information about the xorg-devel mailing list