From 9a027edc9ab8cd71fba33b322845fce5451b9ea3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 2 Apr 2010 22:06:22 -0600 Subject: fix a bug with bash replacement in configure --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 861b37f..15b52cf 100755 --- a/configure +++ b/configure @@ -72,8 +72,8 @@ for var in $vars; do val=${!var1} # GNU bash optimized version - var=${var//':'/'\:'} - val=${val//':'/'\:'} + var=${var//:/\\:} + val=${val//:/\\:} # POSIX version #var=`echo "$var" | sed 's@:@\\:@g'` #val=`echo "$val" | sed 's@:@\\:@g'` @@ -89,7 +89,7 @@ for orig in $Makefiles; do path=`dirname "$orig"` mkdir -p `dirname "$new"` sed -f var.sed "${orig}" | sed \ --e "s:@srcdir@:${path//':'/'\:'}/:g" \ +-e "s:@srcdir@:${path//:/\\:}/:g" \ -e '19 a# DO NOT edit this file, it has been generated by configure, and will' \ -e "19 a# be overwritten. Instead, edit the file \``basename ${orig}`'" \ -e "19 a -- cgit v1.2.3-2-g168b