binutils-gdb/ld/emultempl/astring.sed
Ian Lance Taylor 597e25914e * emultempl/ostring.sed: Rename from stringify.sed.
* emultempl/astring.sed: New file.
	* Makefile.am (stringify.sed): New target.
	(GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
	stringify.sed.
	* configure.in: Define and substitute STRINGIFY.
	* emultempl/*.em: Use stringify.sed from build directory rather
	than source directory.
	* emultempl/elf32.em: Use stringify.sed rather than inline sed
	script.
	* emultempl/gld960.em, emultempl/gld960c.em: Likewise.
	* emultempl/hppaelf.em, emultempl/linux.em: Likewise.
	* emultempl/lnk960.em, emultempl/sunos.em: Likewise.
	* configure, Makefile.in: Rebuild.
1999-08-06 22:46:03 +00:00

14 lines
144 B
Sed

s/["\\]/\\&/g
s/$/\\n\\/
1 s/^/"/
25s/\\$/"/
26s/^/"/
50s/\\$/"/
51s/^/"/
75s/\\$/"/
76s/^/"/
100s/\\$/"/
101s/^/"/
$ s/$/n"/
$ s/\\n"n"$/\\n"/