Re: Newbie question: getting the revision number substituted in the source code
From: Alexis Huxley <ahuxley_at_gmx.net>
Date: 2003-01-08 20:07:55 CET
> > svn print "Version %t.%r, built %D %T"
I produce this from the program's I've written by getting the code
SVN_ID='$HeadURL$ $LastChangedRevision$'
and the URL is something like:
http://google.stop.trawling.com/svn/<prog>/trunk/main.sh
or:
http://google.stop.trawling.com/svn/<prog>/tags/0.1/main.sh
It's then trivial to get it to work out of it is tagged or not. If
Somebody suggested this approach on the list a few months ago, and
Karl's reports the *head*, which is probably not what you want: don't
For a development version I don't know a solution, but for a released
Alexis
---------------------------------------------------------------------
|
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.