From 7b018e838a564a7f9d53ab47483f8b392e461bb5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 15 Feb 2017 01:19:03 +0100 Subject: add style --- convert | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'convert') 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 -- cgit v1.2.3-70-g09d2