Omit OPC and OPM from checksums as they contain the build date.

This commit is contained in:
David Brown 2016-07-01 15:16:11 +01:00
parent 78540bcaba
commit ec7888859c

View file

@ -1,14 +1,16 @@
# Checksum tests # Checksum tests
md5=$((which md5;which md5sum)2>/dev/null) md5=md5
if which md5sum >/dev/null 2>&1; then md5=md5sum; fi
if [ -f $1 ] if [ -f $1 ]
then then
$md5 *.o >newsums $md5 *.o | egrep -v "OP[CM]\\.o" >newsums
if diff -b $1 newsums if diff -b $1 newsums
then printf "\n--- Object file checksums match ---\n"; rm newsums then printf "\n--- Object file checksums match ---\n"
else printf "\n--- Object file checksum mismatch ---\n"; rm newsums; exit 1 else printf "\n--- Object file checksum mismatch ---\n"
fi fi
rm newsums
else else
$md5 *.o >$1 $md5 *.o | egrep -v "OP[CM]\\.o" >$1
printf "\n--- Object files checksummed ---\n" printf "\n--- Object files checksummed ---\n"
fi fi