summaryrefslogtreecommitdiff
path: root/sources/potlatch
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2011-03-13 12:00:36 +0100
committerJochen Topf <jochen@topf.org>2011-03-13 12:00:36 +0100
commit968aeb70370bda68361a46c264469e831d6e1a08 (patch)
treef2448d0534a4ec120f2cd21392acd2551bcba36e /sources/potlatch
parentedf776d618335d11652f49bd142ab59926ac6bbb (diff)
downloadtaginfo-968aeb70370bda68361a46c264469e831d6e1a08.tar
taginfo-968aeb70370bda68361a46c264469e831d6e1a08.tar.gz
Potlatch 2 moved to a new git repository
Diffstat (limited to 'sources/potlatch')
-rwxr-xr-xsources/potlatch/import_potlatch.rb2
-rwxr-xr-xsources/potlatch/update.sh8
2 files changed, 6 insertions, 4 deletions
diff --git a/sources/potlatch/import_potlatch.rb b/sources/potlatch/import_potlatch.rb
index fbdc2dc..5c370b5 100755
--- a/sources/potlatch/import_potlatch.rb
+++ b/sources/potlatch/import_potlatch.rb
@@ -37,7 +37,7 @@ db = SQLite3::Database.new(dir + '/taginfo-potlatch.db')
db.execute('BEGIN TRANSACTION');
-file = File.new(dir + '/resources/map_features.xml')
+file = File.new(dir + '/git-source/resources/map_features.xml')
doc = REXML::Document.new(file)
doc.elements.each('/mapFeatures/category') do |category_element|
diff --git a/sources/potlatch/update.sh b/sources/potlatch/update.sh
index 748ff4a..a2ebcf7 100755
--- a/sources/potlatch/update.sh
+++ b/sources/potlatch/update.sh
@@ -23,10 +23,12 @@ DATABASE=$DIR/taginfo-potlatch.db
rm -f $DATABASE
echo "`$DATECMD` Updating resources..."
-if [ -d $DIR/resources ]; then
- svn update $DIR/resources
+if [ -d $DIR/git-source ]; then
+ cd $DIR/git-source
+ git pull
+ cd -
else
- svn checkout http://svn.openstreetmap.org/applications/editors/potlatch2/resources $DIR/resources
+ git clone git://git.openstreetmap.org/potlatch2.git $DIR/git-source
fi
echo "`$DATECMD` Running init.sql..."