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