[PATCH] build.sh: new command line option

Mariusz Ceier mceier at gmail.com
Thu May 27 18:07:26 PDT 2010


New command line option for autoresuming build:
./build.sh --clone --autoresume build.modules prefix

When build.modules doesn't exist it is equivalent to:
./build.sh --clone -f build.modules prefix

When build.modules does exist it is equivalent to:
./build.sh --clone -f build.modules -r `tail -n 1 build.modules` prefix

Signed-off-by: Mariusz Ceier <mceier at gmail.com>
---
 build.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/build.sh b/build.sh
index 79ae83a..b015bb4 100755
--- a/build.sh
+++ b/build.sh
@@ -677,6 +677,7 @@ usage() {
     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"
 }
 
@@ -746,6 +747,11 @@ do
 	shift
 	RESUME=$1
 	;;
+    --autoresume)
+	shift
+	BUILT_MODULES_FILE=$1
+	[ -f $1 ] && RESUME=`tail -n 1 $1`
+	;;
     -s)
 	shift
 	SUDO=$1
-- 
1.7.1



More information about the xorg-devel mailing list