mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Simplify the conversion from "0x" numbers to a single digit number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14ea39cf3c
commit
1a76f00dde
@ -121,23 +121,7 @@ if ! test $? == 0 ; then
|
||||
fi
|
||||
|
||||
# Install Version.h
|
||||
if [ "x$LLVM_SUBMIT_SUBVERSION" = "x00" -o "x$LLVM_SUBMIT_SUBVERSION" = "x0" ]; then
|
||||
RC_ProjectSourceSubversion=0
|
||||
else
|
||||
case "$LLVM_SUBMIT_SUBVERSION" in
|
||||
01) RC_ProjectSourceSubversion=1 ;;
|
||||
02) RC_ProjectSourceSubversion=2 ;;
|
||||
03) RC_ProjectSourceSubversion=3 ;;
|
||||
04) RC_ProjectSourceSubversion=4 ;;
|
||||
05) RC_ProjectSourceSubversion=5 ;;
|
||||
06) RC_ProjectSourceSubversion=6 ;;
|
||||
07) RC_ProjectSourceSubversion=7 ;;
|
||||
08) RC_ProjectSourceSubversion=8 ;;
|
||||
09) RC_ProjectSourceSubversion=9 ;;
|
||||
*) RC_ProjectSourceSubversion=$LLVM_SUBMIT_SUBVERSION ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
RC_ProjectSourceSubversion=`printf "%d" $LLVM_SUBMIT_SUBVERSION`
|
||||
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