mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-01 02:33:54 +03:00
22 lines
519 B
Bash
Executable File
22 lines
519 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
mkdir -p data/maps/
|
|
|
|
for map_path in `ls data/raw_maps/`; do
|
|
map=`basename $map_path .abst`;
|
|
if [ -e data/edits/$map ]; then
|
|
# Line based iteration, since filenames might have spaces
|
|
ls data/edits/$map/ | while read edit_path
|
|
do
|
|
edits=`basename "$edit_path" .json`;
|
|
echo "Precomputing $map with $edits";
|
|
cd precompute;
|
|
# --release isn't necessary; this doesn't generally take long
|
|
time cargo run -- ../data/raw_maps/$map.abst --edits_name="$edits";
|
|
cd ..;
|
|
done
|
|
fi
|
|
done
|