2016-06-22 20:47:33 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
TARGET_DIR_PATCHES=data_patches
|
|
|
|
BASE_URL=https://s3.amazonaws.com/data.cartodb.net/geocoding/dumps
|
|
|
|
VERSION=0.0.1
|
|
|
|
|
|
|
|
PATCHES_LIST="20160203_countries_bh_isocode.sql
|
2017-10-04 20:31:26 +08:00
|
|
|
20160622_countries_synonym_congo.sql
|
2018-01-17 23:43:09 +08:00
|
|
|
20171004_merge_corsica_and_france.sql
|
2018-03-06 23:15:31 +08:00
|
|
|
20180117_hsinchu_synonyms.sql
|
2018-10-11 23:23:24 +08:00
|
|
|
20180306_add_ssd_rows_for_south_sudan.sql
|
2019-01-17 22:46:07 +08:00
|
|
|
20181011_add_synonyms_for_swaziland.sql
|
2021-01-19 01:48:36 +08:00
|
|
|
20190111_france_regions_typos.sql
|
2022-03-26 00:24:25 +08:00
|
|
|
20210118_add_renamed_country_north_macedonia.sql
|
|
|
|
20220325_france_region_haut-rhin_typo.sql"
|
2016-06-22 20:47:33 +08:00
|
|
|
|
|
|
|
mkdir -p $TARGET_DIR_PATCHES
|
|
|
|
|
|
|
|
for file in $PATCHES_LIST; do
|
|
|
|
url="${BASE_URL}/${VERSION}/patches/$file"
|
|
|
|
|
|
|
|
wget -c --directory-prefix=$TARGET_DIR_PATCHES $url
|
|
|
|
done
|