diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-12-15 22:42:19 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-12-15 22:42:19 +0000 |
commit | 6be413dd64c359f03b91321defceef9d641f1235 (patch) | |
tree | b32a99c7d0b9fcd554f6964b704254b9da16b968 /utils | |
parent | 970eaf2520760d9aa30ceb3a8d4a0dde4548784d (diff) | |
download | external_llvm-6be413dd64c359f03b91321defceef9d641f1235.zip external_llvm-6be413dd64c359f03b91321defceef9d641f1235.tar.gz external_llvm-6be413dd64c359f03b91321defceef9d641f1235.tar.bz2 |
Some command lines don't like numbers with leading zeros. Remove them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/buildit/build_llvm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index 4392b27..25f6554 100755 --- a/utils/buildit/build_llvm +++ b/utils/buildit/build_llvm @@ -243,7 +243,11 @@ if ! test $? == 0 ; then 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 |