diff options
Diffstat (limited to 'htdocs/geojson/update_all.sh')
-rwxr-xr-x | htdocs/geojson/update_all.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/htdocs/geojson/update_all.sh b/htdocs/geojson/update_all.sh new file mode 100755 index 0000000..5a0bc61 --- /dev/null +++ b/htdocs/geojson/update_all.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +function fetch() { + "./fetch_$1.sh" | json_reformat -m > "$1.json.tmp" + rm -f "$1.json" + mv "$1.json.tmp" "$1.json" +} + +fetch streets +fetch city_outlines + +echo "OK." |