diff options
author | Björn Jacke <bj@sernet.de> | 2009-01-09 12:05:55 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-09 12:21:01 +0100 |
commit | 2a52b059ce44403ff6ced066e0bb23fa6cc66a73 (patch) | |
tree | b4836346acaeea5238e977413e2bbf823eb34056 /source4/build | |
parent | 1f7e09ea542df3a2f5f553c0cb11a39c74712950 (diff) | |
download | samba-2a52b059ce44403ff6ced066e0bb23fa6cc66a73.tar.gz samba-2a52b059ce44403ff6ced066e0bb23fa6cc66a73.tar.bz2 samba-2a52b059ce44403ff6ced066e0bb23fa6cc66a73.zip |
quote ' inside '...' and make sure shell isn't eating \ by using perl here.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/m4/public.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4 index e51a8ac146..eca7e8fcb7 100644 --- a/source4/build/m4/public.m4 +++ b/source4/build/m4/public.m4 @@ -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 |