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

Re: Dev Build System: Include Revision Number

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2006-07-18 18:33:33 CEST

On Mon, 2006-07-17 at 21:34 +0100, Max Bowsher wrote:
> It's deliberately not done to avoid needing to run 'svnversion', and
> relink everything from libsvn_subr on upwards, on *every* invocation of
> 'make'.

versionfile:
        svnversion . >> versionfile.new
        cmp versionfile versionfile.new || mv versionfile.new versionfile

I believe that should work with every modern version of make (I've seen
versions which won't re-check the timestamp on versionfile after
executing the rebuild rule, but I think that's ancient history).
svnversion would run on every build, but that's it, and repeated
invocations of svnversion should be quite fast for a Subversion project
tree.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 18 18:47:58 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.