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

RE: Re: A new revsion keyword request

From: André Pönitz <andre_at_wasy.de>
Date: 2005-11-30 16:08:11 CET

Marcus Rohrmoserw wrote:
> Hanjy schrieb:
> > I want a new keyword such as Revsion2, etc.
> > it will be replaced to a new formated line that include the
> > revsion value.
> > Usage:
> > $Revsion2:Format_string$
> >
> > in format_string, the % will be replace to revsion value.
> >
> > example, in my resource file: xx.rc
> >
> > //$Revsion2:#define VERSION 2.0.0.%$
> >
> >
> > it will be replaced to:
> >
> > //$Revsion2:#define VERSION 2.0.0.%$
> > #define VERSION 2.0.0.63
> >
> > Thanks for considering this.
>
> Why don't you do a string manipulation in the DEFINE, eg
>
> #define VERSION extractRevision("$Revision$")

How so?

The preprocessor is rather limited when it comes to string
manipulation. So what would 'extractRevision' look like to
get the equivalent of #define VERSION 2.0.0.63?

Andre'

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 30 17:00:42 2005

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.