From 5dad5c04cb409880c2658a8747f57ff243a396c5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 13 Mar 2009 08:31:34 +1000 Subject: [PATCH] build.sh: add -f flag to append list of modules to a file. Append the module being built (e.g. lib/libX11) to the file specified with -f. If the build fails, resuming the build is as easy as build.sh -r `tail -n 1 filename` ... Signed-off-by: Peter Hutterer Acked-by: Ian Romanick --- build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.sh b/build.sh index fbaff6e..6b4f752 100755 --- a/build.sh +++ b/build.sh @@ -114,6 +114,11 @@ build() { fi echo "Building $1 module component $2..." + + if test x"$BUILT_MODULES_FILE" != "x"; then + echo "$1/$2" >> $BUILT_MODULES_FILE + fi + old_pwd=`pwd` cd $SRCDIR || failed cd1 $1 $2 @@ -624,6 +629,8 @@ usage() { 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 " -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" echo " -n : do not quit after error; just print error message" echo " -o module/component : build just this component" @@ -657,6 +664,10 @@ do -D) DIST=1 ;; + -f) + shift + BUILT_MODULES_FILE=$1 + ;; -g) CFLAGS="-g3 -O0" export CFLAGS -- 2.11.4.GIT