diff options
author | Erich Eckner <git@eckner.net> | 2017-02-15 01:19:03 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-02-15 01:19:03 +0100 |
commit | 7b018e838a564a7f9d53ab47483f8b392e461bb5 (patch) | |
tree | bc289dd58e1babebbdd90a77ce95987c2bb849b5 | |
parent | 78cd24196d94da54fd3866878a56a54b183f4def (diff) | |
download | osm-to-garmin-7b018e838a564a7f9d53ab47483f8b392e461bb5.tar.xz |
add style
-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 |