From: Matthias Rampke Date: Sun, 14 Aug 2011 00:38:22 +0000 (+0200) Subject: only check SHA1 sums for files we're using X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=summon-arm-toolchain.git;a=commitdiff_plain;h=3824a554ef65530578be2e195a84cc7020e46e60 only check SHA1 sums for files we're using --- diff --git a/summon-arm-toolchain b/summon-arm-toolchain index 7ede359..3cd8aee 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -207,7 +207,9 @@ fetch ${MPFR} http://www.mpfr.org/${MPFR}/${MPFR}.tar.bz2 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