diff options
-rwxr-xr-x | convert | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |