$Revision$ in version string?

Michael Eager eager@eagercon.com
Thu Jun 21 19:31:00 GMT 2007


Uros Bizjak wrote:
> Hello!
> 
> Is there a way to add automatically updated SVN revision number to gcc
> version string? Something similar to $Revision$ in RCS?
> 
> I think it would be quite informative if during development phase "gcc
> --version" would report it like:
> 
> gcc --version
> gcc (GCC) 4.3.0 20070621 (experimental) Revision XXXXX
> 
> Perhaps it can also include branch name.

I have the following in my build script:

   echo $VERSION > $BLDDIR/gcc/gcc/DEV-PHASE

$VERSION shows up in place of "experimental".

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



More information about the Gcc mailing list