PR binutils/12964
authorAlan Modra <amodra@gmail.com>
Mon, 8 Aug 2011 00:27:15 +0000 (00:27 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 8 Aug 2011 00:27:15 +0000 (00:27 +0000)
* Makefile.am (embedspu): Use awk rather than sed.
* Makefile.in: Regenerate.

binutils/ChangeLog
binutils/Makefile.am
binutils/Makefile.in

index e26bb64c61be503ea5ab6d50aaec62a9f03bc246..4cdbbbe79623e7d6c13db47a6ecb048ed07cf39e 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-08  Marcus Comstedt  <marcus@mc.pp.se>
+
+       PR binutils/12964
+       * Makefile.am (embedspu): Use awk rather than sed.
+       * Makefile.in: Regenerate.
+
 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * dwarf.c (read_and_display_attr_value): Recognize DW_FORM_data4 and
index 76fc50a1a0527c88517de08eb8f57d4b81914250..bbe58e2132db1538fc8dafd282a80f76dc49c2de 100644 (file)
@@ -288,7 +288,7 @@ bin2c$(EXEEXT_FOR_BUILD): bin2c.c
        $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
 
 embedspu: embedspu.sh Makefile
-       sed "/^program_transform_name=/cprogram_transform_name=$(program_transform_name)" < $< > $@
+       awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
        chmod a+x $@
 
 # We need these for parallel make.
index 1f119d88862a0d04fd5854ab48cff7f7959e04ab..9f10781d58af0bba0f38bcc13d7d820f21c82e20 100644 (file)
@@ -1302,7 +1302,7 @@ bin2c$(EXEEXT_FOR_BUILD): bin2c.c
        $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
 
 embedspu: embedspu.sh Makefile
-       sed "/^program_transform_name=/cprogram_transform_name=$(program_transform_name)" < $< > $@
+       awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
        chmod a+x $@
 
 # We need these for parallel make.