[generator] Fix find_g_t call in _routing and add a separator in gen_planet

This commit is contained in:
Ilya Zverev 2015-08-11 16:58:29 +03:00 committed by Alex Zolotarev
parent 244ca3e548
commit 2d77c20a26
2 changed files with 2 additions and 1 deletions

View file

@ -147,6 +147,7 @@ LOG_PATH="${LOG_PATH:-$TARGET/logs}"
mkdir -p "$LOG_PATH"
PLANET_LOG="$LOG_PATH/generate_planet.log"
[ -n "${MAIL-}" ] && trap "grep STATUS \"$PLANET_LOG\" | mailx -s \"Generate_planet: build failed\" \"$MAIL\"; exit 1" SIGINT SIGTERM
echo -e "\n\n----------------------------------------\n\n" >> "$PLANET_LOG"
log "STATUS" "Start"
# Run external script to find generator_tool

View file

@ -97,7 +97,7 @@ elif [ "$1" == "prepare" ]; then
elif [ "$1" == "mwm" ]; then
[ ! -f "$OSRM_FLAG" ] && fail "Please build OSRM files first"
source find_generator_tool.sh
source "$(dirname "$0")/find_generator_tool.sh"
if [ ! -d "$TARGET/borders" -o -z "$(ls "$TARGET/borders" | grep \.poly)" ]; then
# copy polygons to a temporary directory