diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2010-04-02 22:06:22 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:20 -0600 |
commit | 9a027edc9ab8cd71fba33b322845fce5451b9ea3 (patch) | |
tree | 52cc25de0ded2cb8405d3ea3ade459146d9f99a7 /configure | |
parent | 67952443f7a7e3a76c9755c3e0f04789ae7705d1 (diff) |
fix a bug with bash replacement in configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |