Make a sed expression POSIX compliant.
authorBruno Haible <bruno@clisp.org>
Sat, 28 Feb 2009 02:23:18 +0000 (03:23 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 28 Feb 2009 02:23:18 +0000 (03:23 +0100)
ChangeLog
gnulib-tool

index 79abe824ca74696f1551dc8d2e7e368b8f0b0aa0..f4131d6aeae678cc64330653a937f4fa2d093e1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-27  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): Make the sed expression used to create the
+       sed script for updating the .gitignore file POSIX compliant.
+       Reported by Eric Blake.
+
 2009-02-27  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (sed): Don't alias as "sed --posix".
index a870a0067806d76f2970f03fcc553e50822dd870..4f254b4a783a1c750a5be6d97042e8ea98f0228f 100755 (executable)
@@ -3571,7 +3571,7 @@ s,//*$,/,'
                 echo "Updating $destdir/$dir$ignore (backup in $destdir/$dir${ignore}~)"
                 mv -f "$destdir/$dir$ignore" "$destdir/$dir$ignore"~
                 { sed -e 's,/,\\/,g' -e 's,^,/^,' -e 's,$,\$/d,' < "$tmp"/ignore-removed
-                  if test -n "$anchor"; then sed -e 's,/,\\/,g' -e "s,^,/^${doubly_escaped_anchor}," -e 's,$,\$/d,' < "$tmp"/ignore-removed; fi
+                  if test -n "$anchor"; then sed -e 's,/,\\/,g' -e "s,^,/^${doubly_escaped_anchor}," -e 's,$,$/d,' < "$tmp"/ignore-removed; fi
                 } > "$tmp"/sed-ignore-removed
                 { cat "$destdir/$dir$ignore"~
                   sed -e "s|^|$anchor|" < "$tmp"/ignore-added