[tools] Add script to make routing file

This commit is contained in:
Denis Koronchik 2014-12-02 12:03:05 +03:00 committed by Alex Zolotarev
parent b7f793ec7e
commit c76dcd04a4

18
tools/unix/make_routing.sh Executable file
View file

@ -0,0 +1,18 @@
set -e -u -x
MY_PATH=`echo $0 | grep -o '.*/'`
GENERATOR_TOOL=$MY_PATH../../../omim-build-$1/out/$1/generator_tool
TMPDIR=../../../omim-indexer-tmp/
if ! [ -d $TMPDIR ]
then
mkdir $TMPDIR
fi
PV="cat"
if [ `which pv` ]
then
PV=pv
fi
$PV ../../../omim-maps/$2.osm.bz2 | bzip2 -d | $GENERATOR_TOOL --osrm_file_name=../../../omim-maps/$2.osrm --output=$2