1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

quote ' inside '...' and make sure shell isn't eating \ by using perl here.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Björn Jacke 2009-01-09 12:05:55 +01:00 committed by Stefan Metzmacher
parent 1f7e09ea54
commit 2a52b059ce

View File

@ -201,8 +201,9 @@ CEOF
for ac_var in $ac_subst_vars
do
eval ac_val=\$$ac_var
echo "$ac_var => '$ac_val'," >> $1
eval ac_val=\$$ac_var
# quote ' (\x27) inside '...' and make sure \ isn't eaten by shells, so use perl:
perl -e '$myval="$ENV{ac_val}"; $myval =~ s/\x27/\\\x27/g ; print $ENV{ac_var}." => \x27$myval\x27,\n"' >> $1
done
cat >>$1<<CEOF