aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-10-19 12:25:42 +0200
committerJochen Topf <jochen@topf.org>2014-10-19 12:25:42 +0200
commit7485ce5aaa10ef0b0c22cac99911f8af14a61f68 (patch)
treeaeaadd537309d1b4c7061a4dd56e024c5ef9cd07 /sources
parent3e37013010601f24e1fdc3b84f1e32b46e2d26f3 (diff)
downloadtaginfo-7485ce5aaa10ef0b0c22cac99911f8af14a61f68.tar
taginfo-7485ce5aaa10ef0b0c22cac99911f8af14a61f68.tar.gz
Get projects list from new taginfo-projects directory.
Diffstat (limited to 'sources')
-rw-r--r--sources/projects/project_list.txt18
-rwxr-xr-xsources/projects/update.sh11
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