2018-10-20 18:35:07 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-02-18 01:56:17 +03:00
|
|
|
set -e
|
2018-10-20 18:35:07 +03:00
|
|
|
|
2018-12-20 23:15:58 +03:00
|
|
|
release_mode=""
|
|
|
|
for arg in "$@"; do
|
|
|
|
if [ "$arg" == "--release" ]; then
|
|
|
|
release_mode="--release";
|
|
|
|
else
|
|
|
|
echo "Unknown argument $arg";
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2018-10-20 18:35:07 +03:00
|
|
|
mkdir -p data/maps/
|
|
|
|
|
|
|
|
for map_path in `ls data/raw_maps/`; do
|
|
|
|
map=`basename $map_path .abst`;
|
2019-03-19 01:15:14 +03:00
|
|
|
echo "Precomputing $map";
|
2019-01-11 07:56:15 +03:00
|
|
|
cd precompute;
|
2019-03-19 01:15:14 +03:00
|
|
|
RUST_BACKTRACE=1 cargo run $release_mode ../data/raw_maps/$map.abst;
|
2019-01-11 07:56:15 +03:00
|
|
|
cd ..;
|
2018-10-20 18:35:07 +03:00
|
|
|
done
|
2019-02-21 20:54:28 +03:00
|
|
|
|
|
|
|
# Re-export all synthetic maps from scratch.
|
|
|
|
cd precompute;
|
|
|
|
for path in `ls ../data/synthetic_maps/*`; do
|
2019-03-19 01:15:14 +03:00
|
|
|
RUST_BACKTRACE=1 cargo run $release_mode $path;
|
2019-02-21 20:54:28 +03:00
|
|
|
done
|