mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 01:00:07 +00:00
bdb04f9220
* scripts/output-format.sed: Fix bug in one of the s expressions which used / for one too many things.
35 lines
542 B
Sed
35 lines
542 B
Sed
/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
|
|
s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\2,\3/
|
|
t s
|
|
s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
|
|
t q
|
|
d
|
|
: s
|
|
s/"//g
|
|
G
|
|
s/\n//
|
|
s/^\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\1)/p
|
|
s/^\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\2)/p
|
|
/,/s|^|*** BUG in libc/scripts/output-format.sed *** |p
|
|
q
|
|
: q
|
|
s/"//g
|
|
p
|
|
q
|
|
: f
|
|
s/^.*[ ]-E\([BL]\)[ ].*$/,\1/
|
|
t h
|
|
s/^.*[ ]-E\([BL]\)$/,\1/
|
|
t h
|
|
d
|
|
: h
|
|
h
|