[LLVMdev] Including svn version number in --version output
Matthijs Kooijman
matthijs at stdin.nl
Thu Jul 10 01:18:57 PDT 2008
> I suppose to be annoyingly pedantic about it you could require a
> network connection for the build, check svn info and svn status and
> then set the version string based on whether or not there are local
> patches applied to the checkout - but that would probably fall under
> neurotic :)
Using svnversion (as the original patch does) does exactly this. It outputs
the rev number, postfixed with "M" (for Modified) when there are local
changes.
This does not require a network connection, however, svn keeps a local clean
copy of everything (as opposed to CVS).
Gr.
Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080710/ccfd0a0a/attachment.sig>
More information about the llvm-dev
mailing list