[Zope-CVS] SVN: zpkgtools/trunk/zpkgtools/appsupport/configure.in
use more portable code to determine whether a path is
absolute or not
Fred L. Drake, Jr.
fdrake at gmail.com
Tue Sep 7 12:04:43 EDT 2004
Log message for revision 27466:
use more portable code to determine whether a path is absolute or not
this should work for classic sh, ash, and others that do not support
${name::length} expansions
Changed:
U zpkgtools/trunk/zpkgtools/appsupport/configure.in
-=-
Modified: zpkgtools/trunk/zpkgtools/appsupport/configure.in
===================================================================
--- zpkgtools/trunk/zpkgtools/appsupport/configure.in 2004-09-07 13:08:38 UTC (rev 27465)
+++ zpkgtools/trunk/zpkgtools/appsupport/configure.in 2004-09-07 16:04:43 UTC (rev 27466)
@@ -219,7 +219,9 @@
exit 2
fi
-if [ ! "${prefix::1}" = "/" ] ; then
+# iff $prefix starts with '/', $FIRSTPART will be ''
+FIRSTPART="`echo $prefix | cut -f1 -d/`"
+if [ ! "" = "" ] ; then
prefix="`pwd`/$prefix"
fi
More information about the Zope-CVS
mailing list