summaryrefslogtreecommitdiff
path: root/utils/buildit
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-08-10 00:25:30 +0000
committerBob Wilson <bob.wilson@apple.com>2012-08-10 00:25:30 +0000
commitec175ff2704e26d4ee9d2853ba284d82923b9d74 (patch)
tree1fcd929f614799d8f5557ff7a5df2f87d0ad3986 /utils/buildit
parentc7908037d87c8f6866b872e9f6b5a7fffae5b63e (diff)
downloadllvm-ec175ff2704e26d4ee9d2853ba284d82923b9d74.tar.gz
llvm-ec175ff2704e26d4ee9d2853ba284d82923b9d74.tar.bz2
llvm-ec175ff2704e26d4ee9d2853ba284d82923b9d74.tar.xz
Use the final .version number for LLVM_MINOR_VERSION in Apple llvmCore builds.
We've switched to a 3-component version numbering scheme for Apple releases, and with this scheme, the final number is the one most relevant for setting LLVM_MINOR_VERSION. <rdar://problem/12071459> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 994fb0696e..6aee831046 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -133,7 +133,7 @@ if [ \! -f Makefile.config ]; then
|| exit 1
fi
-SUBVERSION=`echo $RC_ProjectSourceVersion | sed -e 's/[^.]*\.\([0-9]*\).*/\1/'`
+SUBVERSION=`echo $RC_ProjectSourceVersion | sed -e 's/.*\.\([0-9]*\).*/\1/'`
if [ "x$SUBVERSION" != "x$RC_ProjectSourceVersion" ]; then
LLVM_SUBMIT_SUBVERSION=`printf "%02d" $SUBVERSION`