Use the final .version number for LLVM_MINOR_VERSION in Apple llvmCore builds.
authorBob Wilson <bob.wilson@apple.com>
Fri, 10 Aug 2012 00:25:30 +0000 (00:25 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 10 Aug 2012 00:25:30 +0000 (00:25 +0000)
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

utils/buildit/build_llvm

index 994fb0696ee9dde9e4eaf608034d29653a0d5699..6aee8310463d14ac1a6da3afc9b0102cd700aa21 100755 (executable)
@@ -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`