mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 13:09:48 +00:00
597e25914e
* 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.
14 lines
144 B
Sed
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"/
|