This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix version-bumping script (and all affected files)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]