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

Re: Adding current svn revision to source automatically

From: Kenneth Goldman <kgoldman_at_us.ibm.com>
Date: Wed, 17 Dec 2008 08:30:03 -0500

JeremyP <jeremyp_at_jeremyp.net> wrote on 12/16/2008 07:42:51 AM:

> What I do is have a target called genversion (in Xcode, but it'll work
> if you use make or ant or anything) that creates a .c file and .h file
> with the output of svnversion embedded. My binary build includes a
> dependency on the genversion build target so that the .c file is
> always regenerated.
>

I thought of that one too. But putting a call to 'svnversion' in
my makefile to rebuild the .c file will break my customers who
want to build from just the source without access to svn.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=985691

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-18 14:10:04 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.