[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/appsupport - configure.in:1.3

Fred L. Drake, Jr. fred at zope.com
Tue May 4 14:34:52 EDT 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools/appsupport
In directory cvs.zope.org:/tmp/cvs-serv4936

Modified Files:
	configure.in 
Log Message:
fix bug in string-splitting when --prefix and --with-python were given
with their values as part of the same parameter


=== Packages/zpkgtools/zpkgtools/appsupport/configure.in 1.2 => 1.3 ===
--- Packages/zpkgtools/zpkgtools/appsupport/configure.in:1.2	Thu Apr 15 15:12:56 2004
+++ Packages/zpkgtools/zpkgtools/appsupport/configure.in	Tue May  4 14:34:51 2004
@@ -169,7 +169,7 @@
         exit 0
         ;;
     --with-python=* | --with-pytho=* | --with-pyth=* | --with-pyt=* )
-        FOUND=`echo $OPT | sed -e 's/--[^=]=//'`
+        FOUND=`echo $OPT | sed -e 's/--[^=][^=]*=//'`
         # use eval to do tilde expansion
         eval "FOUND='$FOUND'"
         out ""
@@ -185,7 +185,7 @@
         QUIET="true"
         ;;
     --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=* )
-        prefix=`echo $OPT | sed -e 's/--[^=]=//'`
+        prefix=`echo $OPT | sed -e 's/--[^=][^=]*=//'`
         # use eval to do tilde expansion
         eval "prefix='$prefix'"
         ;;




More information about the Zope-CVS mailing list