Re: repository revision -> header file?
On Friday 12 May 2006 00:57, Ralf W. Grosse-Kunstleve wrote:
> I see SVN maintains a global revision number for a repository. I'd
> like to access this revision number via a C or C++ header file, e.g.
> #define MYPROJ_REPOSITORY_REVISION $RepositoryRevision$
> I.e. each time svn update is run, I'd like to get the same number
> that is printed at the end ("Updated to revision 4548."):
> #define MYPROJ_REPOSITORY_REVISION 4548
I usually do things like this by creating the header file within the
Makefile or a script. SVN-Keywords work on the file only anyway.
You can get information about the revision in the local working copy with
"svn info", the remainder is a question of grep, cut and a bit of
Received on Fri May 12 08:32:24 2006
- application/pgp-signature attachment: stored
This is an archived mail posted to the Subversion Users