[PATCH] Add option to build just one specified component.

Brian Rogers brian at xyzw.org
Mon Feb 16 03:11:40 PST 2009


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

diff --git a/build.sh b/build.sh
index c64d928..ca5d76c 100755
--- a/build.sh
+++ b/build.sh
@@ -167,6 +167,11 @@ build() {
 	failed install $1 $2
 
     cd ${old_pwd}
+
+    if test x"$BUILD_ONE" = x1; then
+	echo "Single-component build complete"
+	exit 0
+    fi
 }
 
 # protocol headers have no build order dependencies
@@ -624,6 +629,7 @@ usage() {
     echo "  -j jobs : specify number of jobs to run concurrently"
     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 "  -o module/component : build just this component"
     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"
@@ -669,6 +675,11 @@ do
     -n)
 	NOQUIT=1
 	;;
+    -o)
+	shift
+	RESUME=$1
+	BUILD_ONE=1
+	;;
     -p)
 	PULL=1
 	;;
-- 
1.6.0.4


--------------060308000508000305040008--


More information about the xorg-devel mailing list