Chris Lattner
2008-Jul-10 03:40 UTC
[LLVMdev] Including svn version number in --version output
On Jul 9, 2008, at 6:17 PM, Eric Christopher wrote:> gcc does this with contrib/gcc_update which updates the file every > update: > > revision=`svn info | awk '/Revision:/ { print $2 }'` > branch=`svn info | sed -ne "/URL:/ { > s,.*/trunk,trunk, > s,.*/branches/,, > s,.*/tags/,, > p > }"` > > where you now have revision and branch information.We don't want another commit after every other commit. This should be set by the makefile when a build is done. On Jul 9, 2008, at 7:16 PM, David Greene wrote:> On Wednesday 09 July 2008 20:13, Tanya M. Lattner wrote: >> Why not set the VERSUFFIX to be " (Based on Apple Inc. build 5555) >> (LLVM >> rXXXX)" > > Not everyone is at Apple. :)I don't see what that has to do with anything here. Have you build llvm-gcc lately? It says that for every build - it *is* based on apple gcc. -Chris
Eric Christopher
2008-Jul-10 03:43 UTC
[LLVMdev] Including svn version number in --version output
On Jul 9, 2008, at 8:40 PM, Chris Lattner wrote:> > We don't want another commit after every other commit. This should be > set by the makefile when a build is done.This isn't a commit, it's just a file that's not under version control but created during update/checkout. 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 :) -eric
Matthijs Kooijman
2008-Jul-10 08:18 UTC
[LLVMdev] Including svn version number in --version output
> 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>
Maybe Matching Threads
- [LLVMdev] Including svn version number in --version output
- [LLVMdev] Including svn version number in --version output
- [LLVMdev] Including svn version number in --version output
- [LLVMdev] Including svn version number in --version output
- [LLVMdev] Including svn version number in --version output