summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2009-10-01 21:43:01 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2009-10-01 21:43:01 +0200
commit4a5dbd8401d2601552619834ef05e1368a51de2a (patch)
tree892cbd57e9ef20ae296d135b7a74c494c61fee69
parent58614964ed61210e81b5159851d517765c05961a (diff)
Fix wget invokation so that restarting downloads via -c works.
-rwxr-xr-xsummon-arm-toolchain25
1 files changed, 9 insertions, 16 deletions
diff --git a/summon-arm-toolchain b/summon-arm-toolchain
index 2139182..95da9db 100755
--- a/summon-arm-toolchain
+++ b/summon-arm-toolchain
@@ -44,25 +44,18 @@ if [ ! -e sources ]; then
fi
cd sources
-if [ ! -e ${BINUTILS}.tar.bz2 ]; then
- echo "Downloading binutils sources..."
- wget -c http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2
-fi
-if [ ! -e ${GCC}.tar.bz2 ]; then
- echo "Downloading gcc sources..."
- wget -c ftp://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.bz2
-fi
+echo "Downloading binutils sources..."
+wget -c http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2
-if [ ! -e ${NEWLIB}.tar.gz ]; then
- echo "Downloading newlib sources..."
- wget -c ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz
-fi
+echo "Downloading gcc sources..."
+wget -c ftp://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.bz2
-if [ ! -e ${GDB}.tar.bz2 ]; then
- echo "Downloading gdb sources..."
- wget -c ftp://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2
-fi
+echo "Downloading newlib sources..."
+wget -c ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz
+
+echo "Downloading gdb sources..."
+wget -c ftp://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2
if [ ${LIBSTM32_EN} != 0 ]; then
if [ ! -e libcmsis-${LIBCMSIS}.tar.bz2 ]; then