[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: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Fri, 25 Nov 2011 16:20:19 -0600

On Fri, Nov 25, 2011 at 2:38 PM, Ryan Schmidt
<subversion-2011a_at_ryandesign.com> wrote:
> 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

I updated something like this, based on the older RPM package building
for Subversion, and which I submitted as part of new packaging 1.7.1,
it's in the archives at
http://comments.gmane.org/gmane.comp.version-control.subversion.devel/132223
Received on 2011-11-25 23:20:51 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.