[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-201-g1ea6ed3

Stefan Metzmacher metze at samba.org
Thu Jan 29 14:04:19 GMT 2009


The branch, master has been updated
       via  1ea6ed3fc203875b0364e95174569310fe33d1c5 (commit)
      from  27408de5337afe2e17378a09e9865c62c7b4862b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 1ea6ed3fc203875b0364e95174569310fe33d1c5
Author: Björn Jacke <bj at sernet.de>
Date:   Fri Jan 9 12:05:55 2009 +0100

    quote ' inside '...' and make sure shell isn't eating \ by using perl here.
    
    Signed-off-by: Stefan Metzmacher <metze at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 source4/build/m4/public.m4 |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4
index ffd112f..1823f1b 100644
--- a/source4/build/m4/public.m4
+++ b/source4/build/m4/public.m4
@@ -201,11 +201,9 @@ CEOF
 
 for ac_var in $ac_subst_vars
 do
-    eval ac_val=\$$ac_var
-	if test "$ac_var" != "ECHO_C" 
-	then
-		echo "$ac_var => '$ac_val'," >> $1
-	fi
+	eval ac_val=\$$ac_var
+	# quote ' (\x27) inside '...' and make sure \ isn't eaten by shells, so use perl:
+	QAC_VAL=$ac_val QAC_VAR=$ac_var perl -e '$myval="$ENV{QAC_VAL}"; $myval =~ s/\x27/\\\x27/g ; print $ENV{QAC_VAR}." => \x27$myval\x27,\n"' >> $1
 done
 
 cat >>$1<<CEOF


-- 
Samba Shared Repository


More information about the samba-cvs mailing list