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

Re: getting revision number into text file inside the working copy folder

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Fri, 25 Nov 2011 14:38:09 -0600

On Nov 25, 2011, at 10:06, Jannis wrote:

> 2. And changed the relevant line in DESCRIPTION to:
>
> Version: 0.5.0.$LastChangedRevision$
>
>
> This works partially but changes the line in DESCRIPTION to (for example):
>
> Version: 0.5.0.$LastChangedRevision: 28 $
>
> I need, however:
>
> Version: 0.5.0.28
>
>
> Is there any way to achieve this? In case you have any solution, try to post it understandable to a SVN-newbi :-).

Write a script that runs at build time that generates the DESCRIPTION file, possibly from a template.

See also:

http://subversion.apache.org/faq.html#version-value-in-source
Received on 2011-11-25 21:39:32 CET

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.