#!/usr/bin/env bash if type md5 > /dev/null 2>&1 then md5sum=md5 else md5sum=md5sum fi export md5sum if [ `$md5sum *.length | awk ' { print $1 }' | \ sort | \ uniq | \ wc -l` != 1 ] then echo One or more length files bad exit 1 fi if [ `cat py-cpython-2.7.length | \ awk 'BEGIN { total=0 } { total += $1 } END { print total }'` != $(expr $(cat size) \* 1048576) ] then echo Total length bad exit 1 fi