From 74191d48cafb6a3995999b019764607eb1608cbb Mon Sep 17 00:00:00 2001 From: Michael Hope Date: Sat, 11 Sep 2010 21:33:00 +1200 Subject: Changed stamp files to go into a directory for easy toasting --- summon-arm-toolchain | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/summon-arm-toolchain b/summon-arm-toolchain index d77ac17..9dc59a4 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -27,6 +27,7 @@ LIBOPENSTM32_EN=0 SUMMON_DIR=$(pwd) SOURCES=${SUMMON_DIR}/sources +STAMPS=${SUMMON_DIR}/stamps export PATH="${PREFIX}/bin:${PATH}" @@ -51,9 +52,7 @@ case "$(uname)" in ;; esac -if [ ! -e ${SOURCES} ]; then - mkdir ${SOURCES} -fi +mkdir -p ${STAMPS} ${SOURCES} cd ${SOURCES} @@ -119,7 +118,7 @@ if [ ! -e build ]; then mkdir build fi -if [ ! -e .${BINUTILS}.build ]; then +if [ ! -e ${STAMPS}/${BINUTILS}.build ]; then echo "******************************************************************" echo "* Unpacking ${BINUTILS}" echo "******************************************************************" @@ -149,11 +148,11 @@ if [ ! -e .${BINUTILS}.build ]; then echo "******************************************************************" echo "* Cleaning up ${BINUTILS}" echo "******************************************************************" - touch .${BINUTILS}.build + touch ${STAMPS}/${BINUTILS}.build rm -rf build/* ${BINUTILS} fi -if [ ! -e .${GCC}-boot.build ]; then +if [ ! -e ${STAMPS}/${GCC}-boot.build ]; then echo "******************************************************************" echo "* Unpacking ${GCC}-boot" echo "******************************************************************" @@ -187,11 +186,11 @@ if [ ! -e .${GCC}-boot.build ]; then echo "******************************************************************" echo "* Cleaning up ${GCC}-boot" echo "******************************************************************" - touch .${GCC}-boot.build + touch ${STAMPS}/${GCC}-boot.build rm -rf build/* ${GCC} fi -if [ ! -e .${NEWLIB}.build ]; then +if [ ! -e ${STAMPS}/${NEWLIB}.build ]; then echo "******************************************************************" echo "* Unpacking ${NEWLIB}" echo "******************************************************************" @@ -221,12 +220,12 @@ if [ ! -e .${NEWLIB}.build ]; then echo "******************************************************************" echo "* Cleaning up ${NEWLIB}" echo "******************************************************************" - touch .${NEWLIB}.build + touch ${STAMPS}/${NEWLIB}.build rm -rf build/* ${NEWLIB} fi # Yes, you need to build gcc again! -if [ ! -e .${GCC}.build ]; then +if [ ! -e ${STAMPS}/${GCC}.build ]; then echo "******************************************************************" echo "* Unpacking ${GCC}" echo "******************************************************************" @@ -259,11 +258,11 @@ if [ ! -e .${GCC}.build ]; then echo "******************************************************************" echo "* Cleaning up ${GCC}" echo "******************************************************************" - touch .${GCC}.build + touch ${STAMPS}/${GCC}.build rm -rf build/* ${GCC} fi -if [ ! -e .${GDB}.build ]; then +if [ ! -e ${STAMPS}/${GDB}.build ]; then echo "******************************************************************" echo "* Unpacking ${GDB}" echo "******************************************************************" @@ -290,7 +289,7 @@ if [ ! -e .${GDB}.build ]; then echo "******************************************************************" echo "* Cleaning up ${GDB}" echo "******************************************************************" - touch .${GDB}.build + touch ${STAMPS}/${GDB}.build rm -rf build/* ${GDB} fi -- cgit v1.2.3