diff options
| author | typebrook <typebrook@gmail.com> | 2019-11-19 23:20:47 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-11-19 23:20:47 +0800 |
| commit | 4261c28a3c8313c26d14b91cc64b29c791ea77f8 (patch) | |
| tree | 622b2e3da63db8ead73524f9a435d1d2e01f8bcd /scripts/osm | |
| parent | b2470324e3927c5e505ff206aa6d6fe63f42a191 (diff) | |
update
Diffstat (limited to 'scripts/osm')
| -rwxr-xr-x | scripts/osm/osm.pbf.update | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/osm/osm.pbf.update b/scripts/osm/osm.pbf.update index 599076f..102d158 100755 --- a/scripts/osm/osm.pbf.update +++ b/scripts/osm/osm.pbf.update | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | PBF_FILE=$1 | ||
| 4 | GEOFABRICK_SERVER=http://download.geofabrik.de/asia/taiwan-updates | 3 | GEOFABRICK_SERVER=http://download.geofabrik.de/asia/taiwan-updates |
| 5 | 4 | ||
| 6 | # get next sequence number and store it into NEW_SEQ | 5 | # get next sequence number and store it into NEW_SEQ |
| @@ -27,6 +26,7 @@ do | |||
| 27 | --overwrite \ | 26 | --overwrite \ |
| 28 | --output $NEW_SEQ.osm.pbf | 27 | --output $NEW_SEQ.osm.pbf |
| 29 | 28 | ||
| 30 | PBF_FILE=$NEW_SEQ.osm.pbf | 29 | mv $1 $((NEW_SEQ-1)).osm.pbf |
| 30 | mv $NEW_SEQ.osm.pbf $1 | ||
| 31 | ((NEW_SEQ++)) | 31 | ((NEW_SEQ++)) |
| 32 | done | 32 | done |