mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 12:12:00 +03:00
27 lines
492 B
Bash
Executable File
27 lines
492 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
release_mode=""
|
|
for arg in "$@"; do
|
|
if [ "$arg" == "--release" ]; then
|
|
release_mode="--release";
|
|
else
|
|
# Just recompute a single map.
|
|
cd precompute;
|
|
RUST_BACKTRACE=1 cargo run $release_mode ../data/raw_maps/$arg.bin;
|
|
cd ..;
|
|
exit;
|
|
fi
|
|
done
|
|
|
|
mkdir -p data/maps/
|
|
|
|
for map_path in `ls data/raw_maps/`; do
|
|
map=`basename $map_path .bin`;
|
|
echo "Precomputing $map";
|
|
cd precompute;
|
|
RUST_BACKTRACE=1 cargo run $release_mode ../data/raw_maps/$map.bin;
|
|
cd ..;
|
|
done
|