only check SHA1 sums for files we're using
authorMatthias Rampke <matthias@rampke.de>
Sun, 14 Aug 2011 00:38:22 +0000 (02:38 +0200)
committerMatthias Rampke <matthias@rampke.de>
Sun, 14 Aug 2011 00:38:22 +0000 (02:38 +0200)
summon-arm-toolchain

index 7ede3599254c5bf4d13b3040774ad0a69d2591e0..3cd8aee266295066c4cc0904d367151d8c9641ff 100755 (executable)
@@ -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
 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
 else
     log "WARING: skipping checksum checks due to missing sha1sum"
 fi