abstreet/editor/compare_screencaps.sh
Dustin Carlino dfe50dcee4 reasonable support for roundabouts... collapse it to a single
intersection, which usually gets treated like a stop sign, and has
reasonable geometry
2019-01-16 15:05:44 -08:00

22 lines
417 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`; do
diff $before/$file $after/$file;
if [ $? -eq 1 ]; then
compare $before/$file $after/$file diff/$file;
if [ "$3" == "-i" ]; then
feh diff/$file $before/$file $after/$file;
# Handle interrupts by killing the script entirely
if [ $? -ne 0 ]; then
exit;
fi
fi
fi
done