This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Fix version-bumping script (and all affected files)
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: Phil Edwards <phil at jaj dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 8 Mar 2002 17:20:34 +0000
- Subject: Re: Fix version-bumping script (and all affected files)
- References: <20020306134406.A23390@disaster.basement.lan>
On Wed, Mar 06, 2002 at 01:44:06PM -0500, Phil Edwards wrote:
> During this change
>
> 2002-02-25 Mark Mitchell <mark@codesourcery.com>
>
> * update_version: Automatically update version files on all
> branches.
>
> the "$OLD_VERSION" string in the 'here documents' was indented, probably
> to make the script nicer-looking. Well, the contents of the here document
> -- now including the indentation -- are written back out to the various
> version.c files. So each time the script runs, we progressively indent
> the first line of the version file by about eight spaces. Oops. :-)
To preserve the nicer-looking indenting couldn't <<- be used instead of <<
for the here document? That ignores leading tabs, so sed would only see
the version string not the indentation.
just wondering,
jon
--
"Those who don't understand UNIX are doomed to reinvent it, poorly."
- Henry Spencer