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

Burning svn revision into binaries

From: Justin Verity <jtverity_at_gmail.com>
Date: 2007-02-27 16:15:41 CET

I am trying to put the SVN revision # in my binaries

In my Makefile I do this:

SVNDEF := -D'SVN_REV="$(shell svnversion -n .)"'
CFLAGS = @CFLAGS@ -pipe $(SVNDEF)

And in my user code I do this:

cout << "SVN Revision is " << SVN_REV << endl;

But the output I get is:

"SVN Revision is exported"

Can anyone help?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 27 16:48:50 2007

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.