buildit
changeset 967 efbd0ee6805d
parent 943 294f64612d23
child 970 272328fe1b4a
--- a/buildit	Mon Jun 21 13:12:49 2010 -0700
+++ b/buildit	Tue Jun 22 13:56:05 2010 -0700
@@ -30,26 +30,28 @@
 #
 #
 
-MAKE_PKGS=0
+# Add /usr/bin to front of path in case user has /usr/gnu/bin default
+# Add /usr/sbin to path for dtrace (to build probes in X servers)
+
+PATH=/usr/bin:${PATH}:/usr/sbin
+export PATH
 
-set -- $(getopt p $*)
+MAKE_PKGS=0
+VERBOSE_FLAGS=""	# verbosity flags passed to xmake
+
+set -- $(getopt pv $*)
 if [ $? != 0 ] ; then
-    print -u2 USAGE: $0 [-p]
+    print -u2 USAGE: $0 [-p] [-v]
     exit 2
 fi
 
 for i in $* ; do 
     case $i in
 	-p)     MAKE_PKGS=1; shift;;
+	-v)     VERBOSE_FLAGS="-v"; shift;;
     esac
 done
 
-# Add /usr/bin to front of path in case user has /usr/gnu/bin default
-# Add /usr/sbin to path for dtrace (to build probes in X servers)
-
-PATH=/usr/bin:${PATH}:/usr/sbin
-export PATH
-
 [ -d log ] || mkdir log
 
 # Send all further output & errors to the log file
@@ -87,13 +89,13 @@
     /bin/rm -rf proto-sun4-svr4
 fi
 
-XMAKE="$(pwd)/open-src/util/build-tools/xmake"
+XMAKE="$(pwd)/open-src/util/build-tools/xmake -k ${VERBOSE_FLAGS}"
 
 cd open-src
 # Run as two steps to avoid race between cleaning & rebuilding when
 # using parallel make
-${XMAKE} -v -k clean 
-${XMAKE} -v -k install
+${XMAKE} clean
+${XMAKE} install
 cd ..
 
 print "\nFinished building the X Window System Consolidation for OpenSolaris.\n"