Adding current svn revision to source automatically
From: Kenneth Goldman <kgoldman_at_us.ibm.com>
Date: Mon, 15 Dec 2008 09:51:27 -0500
I'd like to have svn add the current version of a directory to some C
#DEFINE PROGRAM_VERSION 1234
or
const unsigned long program_version = 1234;
Is there a way to do that? Googling came up with two not quite right
- svn itself can add the current version of the file to the file, but
- svnversion utility can return the global version, and the makefile
Is there a standard way to do this? Is there a better forum?
-- Ken Goldman kgold_at_watson.ibm.com 914-784-7646 (863-7646) ------------------------------------------------------ http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984479 To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].Received on 2008-12-15 20:02:28 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.