[PATCH] build.sh: new command line option
Mariusz Ceier
mceier at gmail.com
Wed May 26 18:18:57 PDT 2010
New command line option for autoresuming build:
./build.sh --clone -rf 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..b0001a0 100755
--- a/build.sh
+++ b/build.sh
@@ -675,6 +675,7 @@ usage() {
echo " -o module/component : build just this component"
echo " -p : run git pull on each component"
echo " -r module/component : resume building with this component"
+ echo " -rf file : autoresume from file"
echo " -s sudo-command : sudo command to use"
echo " --clone : clone non-existing repositories (uses \$GITROOT if set)"
echo " --check : run make check in addition to others"
@@ -746,6 +747,11 @@ do
shift
RESUME=$1
;;
+ -rf)
+ 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