[LLVMdev] Including svn version number in --version output

Eric Christopher echristo at apple.com
Thu Jul 10 01:52:07 PDT 2008


On Jul 10, 2008, at 1:18 AM, Matthijs Kooijman wrote:

>> 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.
>

:) Probably the best way.

> This does not require a network connection, however, svn keeps a  
> local clean
> copy of everything (as opposed to CVS).

Right. That I knew. I didn't know that rev was attached to it.

-eric



More information about the llvm-dev mailing list