Author: wyoung
Date: Thu Mar  2 02:44:22 2006
New Revision: 1183

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1183&view=rev
Log:
Bootstrap script can now accept multiple bootstrapping arguments before
the configure script ones, in any order.  In addition to 'pedantic', it
now supports 'noexamples' to disable building of examples, primarily
to speed RPM rebuilds.

Modified:
    branches/v2.1-bakefile/bootstrap

Modified: branches/v2.1-bakefile/bootstrap
URL: 
http://svn.gna.org/viewcvs/mysqlpp/branches/v2.1-bakefile/bootstrap?rev=1183&r1=1182&r2=1183&view=diff
==============================================================================
--- branches/v2.1-bakefile/bootstrap (original)
+++ branches/v2.1-bakefile/bootstrap Thu Mar  2 02:44:22 2006
@@ -1,15 +1,30 @@
 #!/bin/sh
 
-if [ "$1" = "pedantic" ]
-then 
-       export CXXFLAGS="-g -O2 -ansi -pedantic -Wall -W -Wold-style-cast 
-Wfloat-equal -Wwrite-strings -Woverloaded-virtual -Wno-long-long"
-       shift
-fi
+ARGS=1
+OPT_EXAMPLES=
+while [ $ARGS != 0 ]
+do
+       case "$1" in
+               pedantic)
+                       export CXXFLAGS="-g -O2 -ansi -pedantic -Wall -W 
-Wold-style-cast -Wfloat-equal -Wwrite-strings -Woverloaded-virtual 
-Wno-long-long"
+                       shift
+                       ;;
+
+               noexamples)
+                       OPT_EXAMPLES="-DEXAMPLES=no"
+                       shift
+                       ;;
+
+               *)
+                       ARGS=0
+                       ;;
+       esac
+done
 
 rm -f config.cache
 set -x
 
-./rebake &&
+./rebake $OPT_EXAMPLES &&
        aclocal -I config -I /usr/local/share/aclocal &&
        autoheader &&
        autoconf &&


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to