2019-01-15 20:41:45 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-05-17 04:04:14 +03:00
|
|
|
name=$1;
|
2019-06-19 02:31:42 +03:00
|
|
|
before=../data/screenshots/$name;
|
|
|
|
after=../data/screenshots/pending_$name;
|
2019-01-15 20:41:45 +03:00
|
|
|
|
|
|
|
rm -rf diff
|
|
|
|
mkdir diff
|
|
|
|
|
2019-02-18 01:56:17 +03:00
|
|
|
for file in `ls $before | grep -v full.png | grep -v combine.sh | grep -v MANIFEST`; do
|
2019-01-18 01:27:19 +03:00
|
|
|
# For whatever reason, the intersection annotation doesn't seem to
|
|
|
|
# always match up between two captures.
|
|
|
|
prefix=`echo $file | sed 's/_.*//' | sed 's/.png//'`;
|
|
|
|
|
|
|
|
diff $before/${prefix}* $after/${prefix}*;
|
2019-01-15 20:41:45 +03:00
|
|
|
if [ $? -eq 1 ]; then
|
2019-01-18 01:27:19 +03:00
|
|
|
compare $before/${prefix}* $after/${prefix}* diff/${prefix}.png;
|
2019-05-17 04:04:14 +03:00
|
|
|
feh diff/${prefix}.png $before/${prefix}* $after/${prefix}*;
|
|
|
|
# Handle interrupts by killing the script entirely
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
exit;
|
2019-01-15 20:41:45 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|