if which fetch > /dev/null; then
FETCHCMD="fetch -p"
elif which wget > /dev/null; then
- FETCHCMD=wget
+ FETCHCMD="wget -c"
elif which curl > /dev/null; then
- FETCHCMD="curl -O -L"
+ FETCHCMD="curl -C - -O -L"
else
FETCHCMD=ftp # the only HTTP client on some BSD
fi
fetch ${MPC} http://www.multiprecision.org/mpc/download/${MPC}.tar.gz
if which sha1sum > /dev/null; then
- ( echo "$SHA1SUMS" | sha1sum -c - ) || ( log 'ERROR: Checksum fail!'; exit 1 )
+ for f in ${BINUTILS} ${GCC} ${NEWLIB} ${GDB} ${GMP} ${MPFR} ${MPC}; do
+ ( echo "$SHA1SUMS" | grep -F $f | sha1sum -c - ) || ( log 'ERROR: Checksum fail!'; exit 1 )
+ done
else
log "WARING: skipping checksum checks due to missing sha1sum"
fi