llvm.org GIT mirror llvm / 1a76f00
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 Bill Wendling 11 years ago
1 changed file(s) with 1 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
120120 fi
121121
122122 # Install Version.h
123 if [ "x$LLVM_SUBMIT_SUBVERSION" = "x00" -o "x$LLVM_SUBMIT_SUBVERSION" = "x0" ]; then
124 RC_ProjectSourceSubversion=0
125 else
126 case "$LLVM_SUBMIT_SUBVERSION" in
127 01) RC_ProjectSourceSubversion=1 ;;
128 02) RC_ProjectSourceSubversion=2 ;;
129 03) RC_ProjectSourceSubversion=3 ;;
130 04) RC_ProjectSourceSubversion=4 ;;
131 05) RC_ProjectSourceSubversion=5 ;;
132 06) RC_ProjectSourceSubversion=6 ;;
133 07) RC_ProjectSourceSubversion=7 ;;
134 08) RC_ProjectSourceSubversion=8 ;;
135 09) RC_ProjectSourceSubversion=9 ;;
136 *) RC_ProjectSourceSubversion=$LLVM_SUBMIT_SUBVERSION ;;
137 esac
138 fi
139
123 RC_ProjectSourceSubversion=`printf "%d" $LLVM_SUBMIT_SUBVERSION`
140124 echo "#define LLVM_VERSION ${RC_ProjectSourceVersion}" > $DEST_DIR$DEST_ROOT/include/llvm/Version.h
141125 echo "#define LLVM_MINOR_VERSION ${RC_ProjectSourceSubversion}" >> $DEST_DIR$DEST_ROOT/include/llvm/Version.h
142126