mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-27 15:03:20 +03:00
0cff83d776
The mkirk/concave-hull-fix-empty-crash branch was deleted recently, causing CI failures. We can just pin to a recent commit on the main branch.
24 lines
597 B
Bash
Executable File
24 lines
597 B
Bash
Executable File
#!/bin/bash
|
|
# If `updater --dry` says a file changed, like
|
|
# `data/system/us/seattle/maps/montlake.bin`, call this to dump the old and new
|
|
# versions of the file to JSON and compare them manually. This only works if
|
|
# you have a copy of the S3 directory in ~/s3_abst_data.
|
|
|
|
set -e
|
|
|
|
FILE=$1
|
|
if [ "$FILE" == "" ]; then
|
|
echo Missing args;
|
|
exit 1;
|
|
fi
|
|
|
|
cp ~/s3_abst_data/dev/${FILE}.gz old.bin.gz
|
|
gunzip old.bin.gz
|
|
./target/release/cli dump-json old.bin > old.json
|
|
rm -f old.bin
|
|
|
|
./target/release/cli dump-json $FILE > new.json
|
|
|
|
echo "diff old.json new.json"
|
|
echo "mold old.json new.json # slower"
|