Fixed non-working coastline builder script

This commit is contained in:
MapsWithMe OSM User 2013-05-02 09:05:21 +02:00 committed by Alex Zolotarev
parent 9fa6ab8c9c
commit 3b7beea91f

View file

@ -107,12 +107,13 @@ if [[ $1 == "--full" ]]; then
# Do not exit on error
set +e
merge_coasts
set -e
EXIT_CODE=$?
if [[ $EXIT_CODE != 0 ]]; then
date -u
echo "Will try fresh coasts again in 40 minutes..."
sleep 2400
fi
set -e
done
else
if [[ $1 == "--generate" ]]; then
@ -127,6 +128,7 @@ fi
# need link to generated coastlines file
ln -s -f $INTCOASTSDIR/WorldCoasts.mwm.tmp $INTDIR/WorldCoasts.mwm.tmp
if [[ $1 == "--generate" || $1 == "--full" ]]; then
# 1st pass, run in parallel - preprocess whole planet to speed up generation if all coastlines are correct
$CONVERT_TOOL $PLANET_FILE | $GENERATOR_TOOL -intermediate_data_path=$INTDIR -use_light_nodes=false -preprocess_xml