2002-12-07 21:55:12 +00:00
|
|
|
/ld.*[ ]-E[BL]/b f
|
|
|
|
/collect.*[ ]-E[BL]/b f
|
|
|
|
/OUTPUT_FORMAT[^)]*$/{N
|
|
|
|
s/\n[ ]*/ /
|
|
|
|
}
|
|
|
|
t o
|
|
|
|
: o
|
|
|
|
s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/
|
|
|
|
t q
|
2004-08-14 06:54:39 +00:00
|
|
|
s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\1,\2,\3/
|
2002-12-07 21:55:12 +00:00
|
|
|
t s
|
|
|
|
s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
|
|
|
|
t q
|
|
|
|
d
|
|
|
|
: s
|
|
|
|
s/"//g
|
|
|
|
G
|
|
|
|
s/\n//
|
2004-08-14 06:54:39 +00:00
|
|
|
s/^\([^,]*\),\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\2)/p
|
|
|
|
s/^\([^,]*\),\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\3)/p
|
|
|
|
s/^\([^,]*\),\([^,]*\),\([^,]*\)/OUTPUT_FORMAT(\1)/p
|
2002-12-08 08:25:05 +00:00
|
|
|
/,/s|^|*** BUG in libc/scripts/output-format.sed *** |p
|
2002-12-07 21:55:12 +00:00
|
|
|
q
|
|
|
|
: q
|
|
|
|
s/"//g
|
|
|
|
p
|
|
|
|
q
|
|
|
|
: f
|
|
|
|
s/^.*[ ]-E\([BL]\)[ ].*$/,\1/
|
|
|
|
t h
|
|
|
|
s/^.*[ ]-E\([BL]\)$/,\1/
|
|
|
|
t h
|
|
|
|
d
|
|
|
|
: h
|
|
|
|
h
|