bug 50070 - mozconfig2configure can't handle paths with parenthesis r=ted

This commit is contained in:
Brad Lassey 2009-06-24 16:21:14 -04:00
parent 25485b9128
commit a6223e7bd0

View File

@ -62,8 +62,8 @@
ac_add_options() {
for _opt
do
# Escape shell characters, space, tab, dollar, quote, backslash.
_opt=`echo $_opt | sed -e 's/\([\ \ \$\"\\]\)/\\\\\1/g;s/@\([^@]*\)@/\$\1/g;'`
# Escape shell characters, space, tab, dollar, quote, backslash, parentheses.
_opt=`echo $_opt | sed -e 's/\([\ \ \$\"\\\(\)]\)/\\\\\1/g;s/@\([^@]*\)@/\$\1/g;'`
_opt=`echo $_opt | sed -e 's/@\([^@]*\)@/\$(\1)/g'`
# Avoid adding duplicates