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-07-09 11:00:18 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:55:11 +0300
commit41744e837c98c0da9780a83e63b1a6fc3c8bf983 (patch)
treebf9573973c47db3c29a194b794f5d67f5d5288e1 /tools
parent1c355a018de90b624248837f9d7695e5503f7af8 (diff)
[generator] Show missing routing files only if they are expected
Diffstat (limited to 'tools')
-rwxr-xr-xtools/unix/test_planet.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/unix/test_planet.sh b/tools/unix/test_planet.sh
index 8754ef6605..05a6c3c912 100755
--- a/tools/unix/test_planet.sh
+++ b/tools/unix/test_planet.sh
@@ -45,12 +45,14 @@ if [ -d "$TARGET/borders" ]; then
[ ! -f "$TARGET/$MWM" ] && echo "$MWM"
done
fi
-# Only display missing routing files for existing MWMs
-for mwm in "$TARGET"/*.mwm; do
- if [[ "$mwm" != *World* ]]; then
- [ ! -f "$mwm.routing" ] && echo "$(basename "$mwm").routing"
- fi
-done
+if [ -n "$(ls "$TARGET" | grep '\.mwm\.routing')" ]; then
+ # Only display missing routing files for existing MWMs
+ for mwm in "$TARGET"/*.mwm; do
+ if [[ "$mwm" != *World* ]]; then
+ [ ! -f "$mwm.routing" ] && echo "$(basename "$mwm").routing"
+ fi
+ done
+fi
# Step 3: run calc_statistics and check for sections
echo