This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: headers.sed can't handle embedded tabs
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Doug Evans <dje at transmeta dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 13 Aug 2002 10:24:19 +0930
- Subject: Re: headers.sed can't handle embedded tabs
- References: <200208130007.RAA06262@casey.transmeta.com>
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