summaryrefslogtreecommitdiff
path: root/convert
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-02-15 01:19:03 +0100
committerErich Eckner <git@eckner.net>2017-02-15 01:19:03 +0100
commit7b018e838a564a7f9d53ab47483f8b392e461bb5 (patch)
treebc289dd58e1babebbdd90a77ce95987c2bb849b5 /convert
parent78cd24196d94da54fd3866878a56a54b183f4def (diff)
downloadosm-to-garmin-7b018e838a564a7f9d53ab47483f8b392e461bb5.tar.xz
add style
Diffstat (limited to 'convert')
-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