You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
1.1 KiB

#!/bin/bash
set -e;
# per-source downloads
function download_wof(){ compose_run 'whosonfirst' './bin/download'; }
function download_oa(){ compose_run 'openaddresses' './bin/download'; }
function download_osm(){ compose_run 'openstreetmap' './bin/download'; }
function download_tiger(){ compose_run 'interpolation' './bin/download-tiger'; }
function download_transit(){ compose_run 'transit' './bin/download'; }
function download_csv(){ compose_run 'csv-importer' './bin/download'; }
register 'download' 'wof' '(re)download whosonfirst data' download_wof
register 'download' 'oa' '(re)download openaddresses data' download_oa
register 'download' 'osm' '(re)download openstreetmap data' download_osm
register 'download' 'tiger' '(re)download TIGER data' download_tiger
register 'download' 'transit' '(re)download transit data' download_transit
register 'download' 'csv' '(re)download csv data' download_csv
# download all the data to be used by imports
function download_all(){
download_wof &
download_oa &
download_osm &
download_tiger &
download_transit &
download_csv &
wait
}
register 'download' 'all' '(re)download all data' download_all