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

Re: Add a note to FAQ about #version-value-in-source

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-02-27 21:53:26 CET

kfogel@collab.net writes:

> Pedro Zorzenon Neto <pzn@terra.com.br> writes:
>> SVNDEF = -D'SVN_REV="$(shell svnversion -n .)"'
>> CFLAGS = $(SVNDEF) ... continue with your other flags ...
>>
>> To use it, in yourfile.c do something similar to the example below:
>> printf("this program was compiled from SVN revision %s\n",SVN_REV);
>
> Committed in r18636, thank you.

I don't think we should be recommending that because I think it causes
the svnversion command to get run each time the compiler is invoked.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 27 22:22:16 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.