Re: Any simple way to set/get global revision number?
From: BRM <bm_witness_at_yahoo.com>
Date: Tue, 8 Dec 2009 12:45:01 -0800 (PST)
It depends on the platform you are using. If you are using TSVN then there is a program (SubWCRev I think) that can do things like you want.
What you want to do, however, is best left for your build tools to do. If you need multi-platform support that is a bit harder; but still possible, especially with tools like CMake, which can help you with this kind of scripting functionality - but I'd leave that to the CMake folks (cmake.org) and their mailing lists for how to do it.
HTH,
Ben
________________________________
Say I have a c file called version.h and in this file is a macro to build a version string using $HeadURL$ and $Revision$. When a user runs the program this information is printed into the log file to help isolate problems to specific versions that change
------------------------------------------------------
Please start new threads on the <users_at_subversion.apache.org> mailing list.
|
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.