[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: script to put svn revision number in c source file

From: Sean Moss-Pultz <sean_at_moss-pultz.com>
Date: 2004-03-29 16:52:18 CEST

On Mar 29, 2004, at 5:29 PM, Jan Evert van Grootheest wrote:

> Sean,
>
> try the revision keyword.
> In C/C++:
> static char rev[] = "$Revision$";
> printf( "Revision of this file is %s.\n", rev );
>
> -- Jan Evert

Thanks Jan. This worked. Any ideas how I can just get the numbers not
the string. Ie I don't want the string to print as

$Rev: XXXX

i just want

XXXX

Thanks again for help this far. Also will every client have to run the
svn proposet svn:keywords command?

-Sean
Received on Mon Mar 29 16:52:46 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.