Fix sed expression in TAGS command.
authorAndreas Schwab <schwab@redhat.com>
Fri, 7 Aug 2009 08:40:42 +0000 (10:40 +0200)
committerAndreas Schwab <schwab@redhat.com>
Fri, 7 Aug 2009 08:41:30 +0000 (10:41 +0200)
The backslash-newline pair is interpreted as the beginning of an address
regex.

ChangeLog
Makefile

index 94cfd06..c6169d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-07  Andreas Schwab  <schwab@redhat.com>
+
+       * Makefile (TAGS): Use separate sed -e expressions to avoid \
+       inside ''.
+
 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
index cab5ff3..e346979 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -341,9 +341,9 @@ endif
 
 .PHONY: TAGS
 TAGS:
-       scripts/list-sources.sh | sed -n '/Makefile/p;\
+       scripts/list-sources.sh | sed -n -e '/Makefile/p' \
          $(foreach S,[chsSyl] cxx sh bash pl,\
-                   $(subst .,\.,/.$S\(.in\)*$$/p;))' \
+                   $(subst .,\.,-e '/.$S\(.in\)*$$/p')) \
        | $(ETAGS) -o $@ -
 \f
 # Make the distribution tarfile.