diff options
Diffstat (limited to 'sources')
-rw-r--r-- | sources/projects/project_list.txt | 18 | ||||
-rwxr-xr-x | sources/projects/update.sh | 11 |
2 files changed, 10 insertions, 19 deletions
diff --git a/sources/projects/project_list.txt b/sources/projects/project_list.txt deleted file mode 100644 index 0386bed..0000000 --- a/sources/projects/project_list.txt +++ /dev/null @@ -1,18 +0,0 @@ -bano http://bano.openstreetmap.fr/bano_taginfo.json -id_editor https://raw.githubusercontent.com/openstreetmap/iD/master/data/taginfo.json -josm_main_mappaint_style http://josm.openstreetmap.de/download/taginfo/taginfo_style.json -maxheight_map https://raw.githubusercontent.com/mmd-osm/osm-maxheight-map/master/taginfo.json -nominatim http://nominatim.openstreetmap.org/taginfo.json -opensnowmap_org http://www.opensnowmap.org/opensnowmap_taginfo.json -osm24eu http://osm24.eu/taginfo.json -osm_inspector_public_transport_railways http://tools.geofabrik.de/osmi/osmi_pubtrans_railways.json -osm_inspector_public_transport_stops http://tools.geofabrik.de/osmi/osmi_pubtrans_stops.json -osm_mug https://raw.githubusercontent.com/joto/taginfo/master/projects/osm-mug.json -osmcoastline https://raw.githubusercontent.com/joto/osmcoastline/master/taginfo.json -osmhydrant http://www.osmhydrant.org/taginfo.json -osrm https://raw.githubusercontent.com/Project-OSRM/osrm-backend/develop/taginfo.json -townlands_ie http://www.townlands.ie/taginfo.json -unterkunftskarte http://unterkunftskarte.de/unterkunftskarte.json -vespucci https://osmeditor4android.googlecode.com/svn/trunk/taginfo.json -waymarkedtrails http://mapstatic.waymarkedtrails.org/taginfo.json -wikidata_org http://tools.wmflabs.org/wp-world/wikidata/tags.php diff --git a/sources/projects/update.sh b/sources/projects/update.sh index 6c05ac9..b652fae 100755 --- a/sources/projects/update.sh +++ b/sources/projects/update.sh @@ -8,7 +8,7 @@ set -e DIR=$1 -PROJECT_LIST=project_list.txt +PROJECT_LIST=$DIR/taginfo-projects/project_list.txt DATECMD='date +%Y-%m-%dT%H:%M:%S' @@ -29,6 +29,15 @@ DATABASE=$DIR/taginfo-projects.db rm -f $DATABASE +echo "`$DATECMD` Updating projects list..." +if [ -d $DIR/taginfo-projects ]; then + cd $DIR/taginfo-projects + git pull + cd - +else + git clone https://github.com/joto/taginfo-projects.git $DIR/taginfo-projects +fi + echo "`$DATECMD` Running init.sql..." sqlite3 $DATABASE <../init.sql |