[PATCH modular 1/3] Alphabetize usage() options.
Trevor Woerner
twoerner at gmail.com
Mon Sep 27 20:20:27 PDT 2010
From: Trevor Woerner <twoerner at gmail.com>
Sort the command-line options in alphabetical order, short options
followed by long options.
Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
build.sh | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/build.sh b/build.sh
index c01a0d8..219d89d 100755
--- a/build.sh
+++ b/build.sh
@@ -722,8 +722,8 @@ usage() {
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 distcheck in addition to others"
echo " -D : run make dist in addition to others"
+ echo " -d : run make distcheck in addition to others"
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"
@@ -734,9 +734,9 @@ usage() {
echo " -p : run git pull on each component"
echo " -r module/component : resume building with this component"
echo " -s sudo-command : sudo command to use"
- echo " --clone : clone non-existing repositories (uses \$GITROOT if set)"
echo " --autoresume file : autoresume from file"
echo " --check : run make check in addition to others"
+ echo " --clone : clone non-existing repositories (uses \$GITROOT if set)"
echo ""
echo "Usage: $0 -L"
echo " -L : just list modules to build"
@@ -763,18 +763,12 @@ do
-c)
CLEAN=1
;;
- --check)
- CHECK=1
- ;;
- --clone)
- CLONE=1
+ -D)
+ DIST=1
;;
-d)
DISTCHECK=1
;;
- -D)
- DIST=1
- ;;
-f)
shift
BUILT_MODULES_FILE=$1
@@ -788,6 +782,9 @@ do
usage
exit 0
;;
+ -L)
+ LISTONLY=1
+ ;;
-l)
LIB_ONLY=1
;;
@@ -806,17 +803,20 @@ do
shift
RESUME=$1
;;
+ -s)
+ shift
+ SUDO=$1
+ ;;
--autoresume)
shift
BUILT_MODULES_FILE=$1
[ -f $1 ] && RESUME=`tail -n 1 $1`
;;
- -s)
- shift
- SUDO=$1
+ --check)
+ CHECK=1
;;
- -L)
- LISTONLY=1
+ --clone)
+ CLONE=1
;;
*)
PREFIX=$1
--
1.7.3
More information about the xorg-devel
mailing list