#!/bin/bash # Note # 3 GB memory (ram+swap) MUST be available when compiling # This amount is plenty for working with denmark - but more may be required on larger areas # # DATADIR should have 6 GB free space for denmark ################################### # Exit bash if a command fails set -e # also exit if a part of a pipe fails set -o pipefail ######################### DATADIR=/home/openstreetmap if [ ! -d "$DATADIR" ] ; then echo DATADIR not found exit fi if [ ! -f /usr/local/bin/osrm-routed ] ; then echo osrm-routed not found exit fi cd $DATADIR osrm-routed denmark-latest.osrm