scripts: Add train lines and bodies of water to update_all.sh
This commit is contained in:
parent
b888dbe3f4
commit
7a52d5bb59
@ -1,10 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function fetch() {
|
function fetch() {
|
||||||
"./fetch_$1.sh" | json_reformat -m > "$1.json.tmp"
|
if [[ "$3" != "" ]]; then
|
||||||
rm -f "$1.json"
|
fn="$3"
|
||||||
mv "$1.json.tmp" "$1.json"
|
else
|
||||||
|
fn="$1"
|
||||||
|
fi
|
||||||
|
"./fetch_$1.sh" "$2" | json_reformat -m > "$fn.json.tmp"
|
||||||
|
rm -f "$fn.json"
|
||||||
|
mv "$fn.json.tmp" "$fn.json"
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch streets
|
fetch streets
|
||||||
fetch city_outlines
|
fetch city_outlines
|
||||||
|
fetch trainlines "Train Lines"
|
||||||
|
fetch trainlines "Access Paths" trainlines_access
|
||||||
|
fetch bodiesofwater "Rivers" rivers
|
||||||
|
fetch bodiesofwater "Oceans, Seas, and Lakes" oceans
|
||||||
|
Loading…
Reference in New Issue
Block a user