Wadsworth, Eric (Contractor) wrote:
>>> Another question is how to get the release number into the application's
>>> about box automatically. What we would like to do is use the tag/label
>>> as the release number. Using the example above if a user brought up the
>>> about box it would say "Release 1.2". Is there a way to force this
>>> tag/label into a 'version.h' file when it is checked out?
>
>> I do not think there are any good ways to get a release
>> number placed in
>> your source code. It is possible to get the global revision
>> number, which
>> can be used as a good build ID. But, to have a user-friendly
>> value like
>> "Release 1.2" you would either just have to key it into a file on the
>> branch, or perhaps do some kind of scripting where you parse
>> it from the
>> branch folder name.
>
> It would be very handy for us to have the revision number automatically
> dropped into a file every time an update is performed. I'd then make a
> custom build step that would squash the revision number into a little
.java
> file, which would be built into the product.
>
> We're using TortoiseSVN on the workstations. Is there a good way to do
this?
http://subversion.tigris.org/project_faq.html#version-value-in-source
svnversion is the command line way of doing this.
I think Tortoise has a similar tool.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 9 18:25:36 2004