changeset 11232:6df7300b55df

Make a sed expression POSIX compliant.
author Bruno Haible <bruno@clisp.org>
date Sat, 28 Feb 2009 03:23:18 +0100
parents 30f41a946fb0
children 24c05e24422d
files ChangeLog gnulib-tool
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Feb 28 03:15:17 2009 +0100
+++ b/ChangeLog	Sat Feb 28 03:23:18 2009 +0100
@@ -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".
--- a/gnulib-tool	Sat Feb 28 03:15:17 2009 +0100
+++ b/gnulib-tool	Sat Feb 28 03:23:18 2009 +0100
@@ -3571,7 +3571,7 @@
                 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