summaryrefslogtreecommitdiff
path: root/gnulib-tool
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-02-28 03:23:18 +0100
committerBruno Haible <bruno@clisp.org>2009-02-28 03:23:18 +0100
commit6ba8350847a11b3867163113ed559a222c38832d (patch)
tree16dc60d877a7732554d16e13e8767bb13aa28647 /gnulib-tool
parent6c6a6e00e0ff48216395f8525800c571d6a785b9 (diff)
downloadgnulib-6ba8350847a11b3867163113ed559a222c38832d.tar.gz
Make a sed expression POSIX compliant.
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-xgnulib-tool2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnulib-tool b/gnulib-tool
index a870a00678..4f254b4a78 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -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