Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2015-08-06 14:09:55 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:59:29 +0300
commit3ac76a28124165e6e39c93902085a284a9439cce (patch)
tree1240bd148fc2b65026ebdc2309f36055f2cd50cc /tools
parenta884f34625fb387a2ec9add8315de86ab1a46e62 (diff)
[generator] Build only geom files for -l
Diffstat (limited to 'tools')
-rwxr-xr-xtools/unix/generate_planet.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/unix/generate_planet.sh b/tools/unix/generate_planet.sh
index 82f53d95af..e95209db77 100755
--- a/tools/unix/generate_planet.sh
+++ b/tools/unix/generate_planet.sh
@@ -6,7 +6,7 @@
# Displayed when there are unknown options
usage() {
echo
- echo "Usage: $0 [-c] [-u] [-w] [-r]"
+ echo "Usage: $0 [-c] [-u] [-l] [-w] [-r]"
echo
echo -e "-u\tUpdate planet until coastline is not broken"
echo -e "-U\tDownload planet when it is missing"
@@ -268,7 +268,12 @@ if [ "$MODE" == "coast" ]; then
[ -n "$OPT_COAST" ] && cp "$INTCOASTSDIR/WorldCoasts.rawgeom" "$INTDIR"
[ -n "$OPT_COAST" ] && cp "$INTCOASTSDIR/WorldCoasts.geom" "$INTDIR"
[ -z "$KEEP_INTDIR" ] && rm -r "$INTCOASTSDIR"
- MODE=inter
+ if [ -n "$OPT_ROUTING" -o -n "$OPT_WORLD" -o -z "$NO_REGIONS" ]; then
+ MODE=inter
+ else
+ log "STATUS" "Nothing but coastline temporary files were requested, finishing"
+ MODE=last
+ fi
fi
# Starting routing generation as early as we can, since it's done in parallel
@@ -342,8 +347,6 @@ if [ "$MODE" == "mwm" ]; then
"$GENERATOR_TOOL" $PARAMS --output=World 2>> "$LOG_PATH/World.log"
"$GENERATOR_TOOL" --data_path="$TARGET" --user_resource_path="$DATA_PATH/" -generate_search_index --output=World 2>> "$LOG_PATH/World.log"
) &
- fi
- if [ -n "$OPT_COAST" ]; then
"$GENERATOR_TOOL" $PARAMS --output=WorldCoasts 2>> "$LOG_PATH/WorldCoasts.log" &
fi
@@ -397,7 +400,7 @@ if [ "$MODE" == "resources" ]; then
done
chmod 0666 "$TARGET/countries.txt"
- if [ -n "$OPT_WORLD" -o -n "$OPT_COAST" ]; then
+ if [ -n "$OPT_WORLD" ]; then
# Update external resources
[ -z "$(ls "$TARGET" | grep '\.ttf')" ] && cp "$DATA_PATH"/*.ttf "$TARGET"
EXT_RES="$TARGET/external_resources.txt"