mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-27 09:30:37 +02:00
16 lines
285 B
Plaintext
16 lines
285 B
Plaintext
|
#!/bin/sh
|
||
|
diffs=0
|
||
|
rm -f _diff*png
|
||
|
for n in out*.png; do
|
||
|
ref=ref${n#out}
|
||
|
diff=_diff${n#out}
|
||
|
if ! compare -metric AE $ref $n - >/dev/null; then
|
||
|
diffs=`expr $diffs + 1`
|
||
|
compare -metric AE $ref $n $diff
|
||
|
fi
|
||
|
done
|
||
|
echo
|
||
|
[ $diffs = 0 ] && exit 0
|
||
|
echo "$diffs difference(s)" 1>&2
|
||
|
exit 1
|