[llvm-commits] [llvm] r115074 - /llvm/trunk/utils/GetSourceVersion

Daniel Dunbar daniel at zuster.org
Wed Sep 29 12:30:17 PDT 2010


Author: ddunbar
Date: Wed Sep 29 14:30:17 2010
New Revision: 115074

URL: http://llvm.org/viewvc/llvm-project?rev=115074&view=rev
Log:
GetSourceVersion: Strip off svninfo extra markers, which aren't really part of the version.

Modified:
    llvm/trunk/utils/GetSourceVersion

Modified: llvm/trunk/utils/GetSourceVersion
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/GetSourceVersion?rev=115074&r1=115073&r2=115074&view=diff
==============================================================================
--- llvm/trunk/utils/GetSourceVersion (original)
+++ llvm/trunk/utils/GetSourceVersion Wed Sep 29 14:30:17 2010
@@ -15,7 +15,7 @@
 
 cd $1
 if [ -d .svn ]; then
-  svnversion
+  svnversion | sed -e "s#\([0-9]*\)[A-Z]*#\1#"
 elif [ -d .git/svn ]; then
   git svn info | grep 'Revision:' | cut -d: -f2-
 elif [ -d .git ]; then





More information about the llvm-commits mailing list