61e658a1523c43615abc7c0357cef276de29448f
[platform/upstream/glibc.git] / scripts / output-format.sed
1 /ld.*[  ]-E[BL]/b f
2 /collect.*[     ]-E[BL]/b f
3 /OUTPUT_FORMAT[^)]*$/{N
4 s/\n[    ]*/ /
5 }
6 t o
7 : o
8 s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/
9 t q
10 s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\2,\3/
11 t s
12 s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
13 t q
14 d
15 : s
16 s/"//g
17 G
18 s/\n//
19 s/^\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\1)/p
20 s/^\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\2)/p
21 /,/s|^|*** BUG in libc/scripts/output-format.sed *** |p
22 q
23 : q
24 s/"//g
25 p
26 q
27 : f
28 s/^.*[  ]-E\([BL]\)[    ].*$/,\1/
29 t h
30 s/^.*[  ]-E\([BL]\)$/,\1/
31 t h
32 d
33 : h
34 h