GetSourceVersion: Strip off svninfo extra markers, which aren't really part of the...
authorDaniel Dunbar <daniel@zuster.org>
Wed, 29 Sep 2010 19:30:17 +0000 (19:30 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 29 Sep 2010 19:30:17 +0000 (19:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115074 91177308-0d34-0410-b5e6-96231b3b80d8

utils/GetSourceVersion

index 5481f3915b4e5f421b1bc67738b803a1fe0f09d3..cbed7daf5b618f1c80c398c9e267a58a1253444f 100755 (executable)
@@ -15,7 +15,7 @@ fi
 
 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