From 2d77c20a26b400f8114e66f0a6f5a1feac2715ce Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Tue, 11 Aug 2015 16:58:29 +0300 Subject: [PATCH] [generator] Fix find_g_t call in _routing and add a separator in gen_planet --- tools/unix/generate_planet.sh | 1 + tools/unix/generate_planet_routing.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/unix/generate_planet.sh b/tools/unix/generate_planet.sh index d2512b7e32..8f98e863ec 100755 --- a/tools/unix/generate_planet.sh +++ b/tools/unix/generate_planet.sh @@ -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 diff --git a/tools/unix/generate_planet_routing.sh b/tools/unix/generate_planet_routing.sh index b6a70e72b8..d9cffa159d 100755 --- a/tools/unix/generate_planet_routing.sh +++ b/tools/unix/generate_planet_routing.sh @@ -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