summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-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..."