summaryrefslogtreecommitdiff
path: root/utils/GetSourceVersion
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-09-29 19:30:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-09-29 19:30:17 +0000
commit6a2e912690ba15ce9cb91ed02e923beba1521275 (patch)
tree7e5deefba38b459cf010d9317a2e4e8372a8287f /utils/GetSourceVersion
parent3e45b77612f4c9815a0af40b631aff98d9a26d23 (diff)
downloadllvm-6a2e912690ba15ce9cb91ed02e923beba1521275.tar.gz
llvm-6a2e912690ba15ce9cb91ed02e923beba1521275.tar.bz2
llvm-6a2e912690ba15ce9cb91ed02e923beba1521275.tar.xz
GetSourceVersion: Strip off svninfo extra markers, which aren't really part of the version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/GetSourceVersion')
-rwxr-xr-xutils/GetSourceVersion2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/GetSourceVersion b/utils/GetSourceVersion
index 5481f3915b..cbed7daf5b 100755
--- a/utils/GetSourceVersion
+++ b/utils/GetSourceVersion
@@ -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