[llvm-branch-commits] [llvm-branch] r91466 - /llvm/branches/Apple/Leela-M1/utils/buildit/build_llvm
Bill Wendling
isanbard at gmail.com
Tue Dec 15 14:44:24 PST 2009
Author: void
Date: Tue Dec 15 16:44:23 2009
New Revision: 91466
URL: http://llvm.org/viewvc/llvm-project?rev=91466&view=rev
Log:
$ svn merge -c 91463 https://llvm.org/svn/llvm-project/llvm/trunk
--- Merging r91463 into '.':
U utils/buildit/build_llvm
Modified:
llvm/branches/Apple/Leela-M1/utils/buildit/build_llvm
Modified: llvm/branches/Apple/Leela-M1/utils/buildit/build_llvm
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela-M1/utils/buildit/build_llvm?rev=91466&r1=91465&r2=91466&view=diff
==============================================================================
--- llvm/branches/Apple/Leela-M1/utils/buildit/build_llvm (original)
+++ llvm/branches/Apple/Leela-M1/utils/buildit/build_llvm Tue Dec 15 16:44:23 2009
@@ -243,7 +243,11 @@
fi
# Install Version.h
-RC_ProjectSourceSubversion=`printf "%d" $LLVM_SUBMIT_SUBVERSION`
+LLVM_MINOR_VERSION=`echo $LLVM_SUBMIT_SUBVERSION | sed -e 's,0*\([1-9][0-9]*\),\1,'`
+if [ "x$LLVM_MINOR_VERSION" = "x" ]; then
+ LLVM_MINOR_VERSION=0
+fi
+RC_ProjectSourceSubversion=`printf "%d" $LLVM_MINOR_VERSION`
echo "#define LLVM_VERSION ${RC_ProjectSourceVersion}" > $DEST_DIR$DEST_ROOT/include/llvm/Version.h
echo "#define LLVM_MINOR_VERSION ${RC_ProjectSourceSubversion}" >> $DEST_DIR$DEST_ROOT/include/llvm/Version.h
More information about the llvm-branch-commits
mailing list