libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Libtool branch, master, updated. v2.2.10-88-gd7ed1f8


From: Paolo Bonzini
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.10-88-gd7ed1f8
Date: Sun, 22 Aug 2010 07:27:22 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  d7ed1f8f9f03ff54a1c8950848ae34bca41fb5f1 (commit)
      from  c9ee137683c618c9c1f2fedbb4b9e970615dfc99 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d7ed1f8f9f03ff54a1c8950848ae34bca41fb5f1
Author: Paolo Bonzini <address@hidden>
Date:   Sun Aug 15 19:04:08 2010 +0200

    Factor the sed command used to make a regex from a literal.
    
    * libltdl/config/general.m4sh (sed_make_literal_regex): New.
    * libltdl/config/ltmain.m4sh (func_generate_dlsyms,
    func_cygming_dll_for_implib_fallback_core): Use it.  Suggested
    by Ralf Wildenhues.

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

Summary of changes:
 ChangeLog                   |    8 ++++++++
 libltdl/config/general.m4sh |    4 ++++
 libltdl/config/ltmain.m4sh  |    2 +-
 3 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0d5840f..9892427 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-08-15  Paolo Bonzini  <address@hidden>
+
+       Factor the sed command used to make a regex from a literal.
+       * libltdl/config/general.m4sh (sed_make_literal_regex): New.
+       * libltdl/config/ltmain.m4sh
+       (func_cygming_dll_for_implib_fallback_core): Use it.  Suggested
+       by Ralf Wildenhues.
+
 2010-08-21  Rainer Tammer <address@hidden>  (tiny change)
 
        Avoid issues with AIX resident shared libraries in old testsuite.
diff --git a/libltdl/config/general.m4sh b/libltdl/config/general.m4sh
index 1245fe5..1ccb9b0 100644
--- a/libltdl/config/general.m4sh
+++ b/libltdl/config/general.m4sh
@@ -315,6 +315,10 @@ sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
 # Same as above, but do not quote variable references.
 double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
+# Sed substitution that turns a string into a regex matching for the
+# string literally.
+sed_make_literal_regex='s,[].[^$\\*/],\\\\&,g'
+
 # Re-`\' parameter expansions in output of double_quote_subst that were
 # `\'-ed in input to the same.  If an odd number of `\' preceded a '$'
 # in input to double_quote_subst, that '$' was protected from expansion.
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index d334b65..c6671a0 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -2265,7 +2265,7 @@ func_cygming_dll_for_implib ()
 func_cygming_dll_for_implib_fallback_core ()
 {
   $opt_debug
-  match_literal=`$ECHO "$1" | $SED 's/[].[^$\\*|]/\\\\&/g'`
+  match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
   $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
     $SED '/^Contents of section '"$match_literal"':/{
       # Place marker at beginning of archive member dllname section


hooks/post-receive
-- 
GNU Libtool



reply via email to

[Prev in Thread] Current Thread [Next in Thread]