mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-22 13:51:33 +03:00
26 lines
647 B
Bash
Executable File
26 lines
647 B
Bash
Executable File
#!/bin/bash
|
|
|
|
before=$1;
|
|
after=$2;
|
|
|
|
rm -rf diff
|
|
mkdir diff
|
|
|
|
for file in `ls $before | grep -v full.png | grep -v combine.sh | grep -v MANIFEST`; do
|
|
# 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}*;
|
|
if [ $? -eq 1 ]; then
|
|
compare $before/${prefix}* $after/${prefix}* diff/${prefix}.png;
|
|
if [ "$3" == "-i" ]; then
|
|
feh diff/${prefix}.png $before/${prefix}* $after/${prefix}*;
|
|
# Handle interrupts by killing the script entirely
|
|
if [ $? -ne 0 ]; then
|
|
exit;
|
|
fi
|
|
fi
|
|
fi
|
|
done
|