mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Some command lines don't like numbers with leading zeros. Remove them.
llvm-svn: 91463
This commit is contained in:
parent
8505aa648d
commit
0de1598c3b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user