summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconvert17
1 files changed, 17 insertions, 0 deletions
diff --git a/convert b/convert
index ca60c24..eb40d59 100755
--- a/convert
+++ b/convert
@@ -81,6 +81,21 @@ do
]
done
+if [ ! -d mkgmap-style-sheets ]
+then
+ git clone 'https://github.com/ligfietser/mkgmap-style-sheets.git'
+ needsRecompilation=true
+fi
+
+git -C mkgmap-style-sheets fetch --all -p
+
+if [ "$(git -C mkgmap-style-sheets rev-parse origin/HEAD)" != "$(git -C mkgmap-style-sheets rev-parse HEAD)" ]
+then
+ git -C mkgmap-style-sheets checkout master
+ git -C mkgmap-style-sheets reset --hard origin/master
+ needsRecompilation=true
+fi
+
if ${needsRecompilation}
then
/usr/lib/jvm/java-8-openjdk/jre/bin/java -jar /usr/share/java/mkgmap/mkgmap.jar \
@@ -96,6 +111,8 @@ then
--area-name="parts of europe" \
--max-jobs="${numJobs}" \
--remove-ovm-work-files \
+ --style-file=mkgmap-style-sheets/styles \
+ --style="generic new" \
*-latest_dir/6324????.osm.pbf
rm -f 6324????.img
fi