Skip to content

Commit

Permalink
only check SHA1 sums for files we're using
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasr committed Aug 14, 2011
1 parent 9b7e245 commit 3824a55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion summon-arm-toolchain
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3824a55

Please sign in to comment.