[PATCH] Add support for pulling each component before building it.

Brian Rogers brian at xyzw.org
Sun Feb 1 02:47:39 PST 2009


---
 build.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/build.sh b/build.sh
index f043240..f2d7dab 100755
--- a/build.sh
+++ b/build.sh
@@ -117,6 +117,10 @@ build() {
     old_pwd=`pwd`
     cd $SRCDIR || failed cd1 $1 $2
 
+    if test x"$PULL" = x1; then
+	git pull || failed "git pull" $1 $2
+    fi
+
     # Build outside source directory
     if [ "x$DIR_ARCH" != x ] ; then
 	mkdir -p "$DIR_ARCH" || failed mkdir $1 $2
@@ -619,6 +623,7 @@ usage() {
     echo "  -g : build with debug information"
     echo "  -m path-to-mesa-sources-for-xserver : full path to Mesa sources"
     echo "  -n : do not quit after error; just print error message"
+    echo "  -p : run git pull on each component"
     echo "  -r module/component : resume building with this comonent"
     echo "  -s sudo-command : sudo command to use"
 }
@@ -659,6 +664,9 @@ do
     -n)
 	NOQUIT=1
 	;;
+    -p)
+	PULL=1
+	;;
     -r)
 	shift
 	RESUME=$1
-- 
1.6.0.4


--------------060308000508000305040008
Content-Type: text/x-patch;
 name="0002-Add-support-for-concurrency-while-building-component.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="0002-Add-support-for-concurrency-while-building-component.pa";
 filename*1="tch"



More information about the xorg-devel mailing list