]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/config/general.m4sh (sed_double_backslash): Fix
authorRalf Menzel <menzel@ls6.cs.uni-dortmund.de>
Fri, 23 Feb 2007 18:18:34 +0000 (18:18 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 23 Feb 2007 18:18:34 +0000 (18:18 +0000)
hacky sed script to avoid limitations but retain portability to
Solaris /bin/sed.  Remove old obsolete cruft.

ChangeLog
libltdl/config/general.m4sh

index a1aab6cf0285d79757612f03159129484c4cd4a4..c68ad87295ca2dd93e707e39405afea695e7cef5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-23  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
+
+       * libltdl/config/general.m4sh (sed_double_backslash): Fix
+       hacky sed script to avoid limitations but retain portability to
+       Solaris /bin/sed.  Remove old obsolete cruft.
+
 2007-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libltdl/config/ltmain.m4sh (func_mode_link): Fix the check for
index 4e1d1f1bdb408ab16877aaf99d5a5171be7e0c51..697e47104df780dc04ed7e96fe36343894283e4e 100644 (file)
@@ -101,28 +101,16 @@ double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 # in input to double_quote_subst, that '$' was protected from expansion.
 # Since each input `\' is now two `\'s, look for any number of runs of
 # four `\'s followed by two `\'s and then a '$'.  `\' that '$'. 
-#
-# Note in the first, non-portable but general version, the embedded single
-# quotes serve only to enhance readability.
-#sed_double_backslash='s/^\(\(''\\\\''\\\\''\)*''\\\\''\)\$/\1\\$/;
-#                s/\([[^\\]]\(''\\\\''\\\\''\)*''\\\\''\)\$/\1\\$/g'
 bs='\\'
 bs2='\\\\'
 bs4='\\\\\\\\'
 dollar='\$'
 sed_double_backslash="\
+  s/$bs4/&\\
+/g
   s/^$bs2$dollar/$bs&/
-  s/^$bs4$bs2$dollar/$bs&/
-  s/^$bs4$bs4$bs2$dollar/$bs&/
-  s/^$bs4$bs4$bs4$bs2$dollar/$bs&/
-  s/^$bs4$bs4$bs4$bs4$bs2$dollar/$bs&/
-  s/^$bs4$bs4$bs4$bs4$bs4$bs2$dollar/$bs&/
-  s/\\([[^$bs]]\\)\\($bs2$dollar\\)/\\1$bs\\2/g
-  s/\\([[^$bs]]\\)\\($bs4$bs2$dollar\\)/\\1$bs\\2/g
-  s/\\([[^$bs]]\\)\\($bs4$bs4$bs2$dollar\\)/\\1$bs\\2/g
-  s/\\([[^$bs]]\\)\\($bs4$bs4$bs4$bs2$dollar\\)/\\1$bs\\2/g
-  s/\\([[^$bs]]\\)\\($bs4$bs4$bs4$bs4$bs2$dollar\\)/\\1$bs\\2/g
-  s/\\([[^$bs]]\\)\\($bs4$bs4$bs4$bs4$bs4$bs2$dollar\\)/\\1$bs\\2/g"
+  s/\\([[^$bs]]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
+  s/\n//g"
 
 # Standard options:
 opt_dry_run=false