headers.sed can't handle embedded tabs

Alan Modra amodra@bigpond.net.au
Mon Aug 12 17:54:00 GMT 2002


On Mon, Aug 12, 2002 at 05:07:17PM -0700, Doug Evans wrote:
> Is anyone else seeing the top of the files generated by "make headers"
> containing incorrect text?

Not here.

$ sh --version
GNU bash, version 2.04.0(1)-release (i386-suse-linux)

$ make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.

> Maybe ya want to support tabs in there.

Please test this for me.

	* header.sed: Strip tabs.

Index: bfd/doc/header.sed
===================================================================
RCS file: /cvs/src/src/bfd/doc/header.sed,v
retrieving revision 1.1
diff -u -p -r1.1 header.sed
--- bfd/doc/header.sed	1 Oct 2001 14:03:36 -0000	1.1
+++ bfd/doc/header.sed	13 Aug 2002 00:52:57 -0000
@@ -1,3 +1,4 @@
+s|[ 	][ 	]*| |g
 s|\(.*\) [^ ]*header.sed.*|\1|
 s|[^ ]*/||g
 s|^ *|"|

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list