From 499d7cf188d48e7f709d07212bbd367198a1569d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 11 Jul 2008 22:42:10 +0000 Subject: [PATCH] Porting r53478 into mainline: Update to build_llvm. Don't output a floating point number for the version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53484 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/buildit/build_llvm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index 4ef7fb54015..e4de0b59688 100755 --- a/utils/buildit/build_llvm +++ b/utils/buildit/build_llvm @@ -89,6 +89,14 @@ if [ \! -f Makefile.config ]; then || exit 1 fi +SUBVERSION=`echo $RC_ProjectSourceVersion | sed -e 's/.*\.//'` + +if [ "x$SUBVERSION" != "x$RC_ProjectSourceVersion" ]; then + LLVM_SUBMIT_SUBVERSION=`printf "%02d" $SUBVERSION` + RC_ProjectSourceVersion=`echo $RC_ProjectSourceVersion | sed -e 's/\..*//'` + LLVM_SUBMIT_VERSION=$RC_ProjectSourceVersion +fi + if [ "x$LLVM_SUBMIT_SUBVERSION" = "x00" -o "x$LLVM_SUBMIT_SUBVERSION" = "x0" ]; then LLVM_VERSION="$LLVM_SUBMIT_VERSION" else