You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Hudson <gh...@MIT.EDU> on 2004/07/16 17:42:37 UTC
Re: "svn --version" should report revision it was built from on
dev (HEAD) builds
On Fri, 2004-07-16 at 11:50, Ben Reser wrote:
> And like I said, to be accurate you'd have to regenerate svn_version.h
> in every rebuild. Run make at the top level in a wc, then touch
> subversion/include/svn_version.h, run make again, watch the whole thing
> rebuild from scratch.
We could add a new header file with just the svnversion output, include
it only in the file(s) which need it, and use a Makefile hack to only
update it when it changes.
Not sure if it's worthwhile, but it doesn't mean having to rebuild all
of svn each time you run make.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: "svn --version" should report revision it was built from on dev
(HEAD) builds
Posted by Klaus Rennecke <kr...@tigris.org>.
Hmm, please don't get angry if this is a silly idea, but what's wrong with
#ifdef SVN_DEBUG
static const char* _svnid = "$Id$";
#endif
Assuming that a dev build that's to stay any longer than a few minutes
should be built statically, this would at least allow to get a definite
profile of what version of .c files was used to create the object.
ident(1) is your friend :-)
/Klaus
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org