mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-29 17:34:58 +03:00
3ea3ea199a
editor plugins
30 lines
560 B
Bash
Executable File
30 lines
560 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
release_mode=""
|
|
for arg in "$@"; do
|
|
if [ "$arg" == "--release" ]; then
|
|
release_mode="--release";
|
|
else
|
|
echo "Unknown argument $arg";
|
|
exit 1;
|
|
fi
|
|
done
|
|
|
|
mkdir -p data/maps/
|
|
|
|
for map_path in `ls data/raw_maps/`; do
|
|
map=`basename $map_path .abst`;
|
|
echo "Precomputing $map";
|
|
cd precompute;
|
|
RUST_BACKTRACE=1 cargo run $release_mode ../data/raw_maps/$map.abst;
|
|
cd ..;
|
|
done
|
|
|
|
# Re-export all synthetic maps from scratch.
|
|
cd precompute;
|
|
for path in `ls ../data/synthetic_maps/*`; do
|
|
RUST_BACKTRACE=1 cargo run $release_mode $path;
|
|
done
|