[PATCH] build.sh: add -f flag to append list of modules to a file.
Peter Hutterer
peter.hutterer at who-t.net
Sun Mar 15 21:57:15 PDT 2009
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 <peter.hutterer at who-t.net>
---
build.sh | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
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
--
1.6.0.6
More information about the xorg-devel
mailing list