From: Matthias Rampke Date: Tue, 16 Aug 2011 22:54:44 +0000 (+0200) Subject: fix command conflict when fetch(1) is present X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=summon-arm-toolchain.git;a=commitdiff_plain;h=0b4548cb9d693a16944cc3d71418b612b172fe35 fix command conflict when fetch(1) is present --- diff --git a/summon-arm-toolchain b/summon-arm-toolchain index 9577702..f08581a 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -147,7 +147,7 @@ fi ############################################################################## # Fetch a versioned file from a URL -fetch() { +dofetch() { if [ ! -e ${STAMPS}/$1.fetch ]; then log "Downloading $1 sources..." ${FETCHCMD} $2 @@ -201,13 +201,13 @@ mkdir -p ${STAMPS} ${SOURCES} cd ${SOURCES} -fetch ${BINUTILS} http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2 -fetch ${GCC} ${GCCURL} -fetch ${NEWLIB} ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz -fetch ${GDB} http://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2 -fetch ${GMP} ftp://ftp.gmplib.org/pub/${GMP}/${GMP}.tar.bz2 -fetch ${MPFR} http://www.mpfr.org/${MPFR}/${MPFR}.tar.bz2 -fetch ${MPC} http://www.multiprecision.org/mpc/download/${MPC}.tar.gz +dofetch ${BINUTILS} http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2 +dofetch ${GCC} ${GCCURL} +dofetch ${NEWLIB} ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz +dofetch ${GDB} http://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2 +dofetch ${GMP} ftp://ftp.gmplib.org/pub/${GMP}/${GMP}.tar.bz2 +dofetch ${MPFR} http://www.mpfr.org/${MPFR}/${MPFR}.tar.bz2 +dofetch ${MPC} http://www.multiprecision.org/mpc/download/${MPC}.tar.gz if which sha1sum > /dev/null; then for f in ${BINUTILS} ${GCC} ${NEWLIB} ${GDB} ${GMP} ${MPFR} ${MPC}; do