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 <[email protected]>
---
 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

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to