2004-08-13 Daniel Jacobowitz <dan@debian.org>
authorRoland McGrath <roland@gnu.org>
Sat, 14 Aug 2004 06:54:39 +0000 (06:54 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 14 Aug 2004 06:54:39 +0000 (06:54 +0000)
* scripts/output-format.sed: Handle default case of three-argument
OUTPUT_FORMAT.

scripts/output-format.sed

index 61e658a..364f520 100644 (file)
@@ -7,7 +7,7 @@ t o
 : o
 s/^.*OUTPUT_FORMAT(\([^,]*\), \1, \1).*$/OUTPUT_FORMAT(\1)/
 t q
-s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\2,\3/
+s/^.*OUTPUT_FORMAT(\([^,]*\), \([^,]*\), \([^,]*\)).*$/\1,\2,\3/
 t s
 s/^.*OUTPUT_FORMAT(\([^,)]*\).*$)/OUTPUT_FORMAT(\1)/
 t q
@@ -16,8 +16,9 @@ d
 s/"//g
 G
 s/\n//
-s/^\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\1)/p
-s/^\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\2)/p
+s/^\([^,]*\),\([^,]*\),\([^,]*\),B/OUTPUT_FORMAT(\2)/p
+s/^\([^,]*\),\([^,]*\),\([^,]*\),L/OUTPUT_FORMAT(\3)/p
+s/^\([^,]*\),\([^,]*\),\([^,]*\)/OUTPUT_FORMAT(\1)/p
 /,/s|^|*** BUG in libc/scripts/output-format.sed *** |p
 q
 : q