Add documentation on how to get this running on a psql setup
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 7 Jun 2009 14:56:08 +0000 (14:56 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 7 Jun 2009 14:56:08 +0000 (14:56 +0000)
BUILD
settings.sh

diff --git a/BUILD b/BUILD
index 71c825a..6918415 100644 (file)
--- a/BUILD
+++ b/BUILD
@@ -3,10 +3,22 @@ To build gpx-import:
 You will need a C compiler, and the following Debian/Ubuntu packages:
   zlib1g-dev libbz2-dev libarchive-dev libexpat1-dev libgd2-noxpm-dev
 
-then run
-  make -C src
+If you're using PostgreSQL you need to change this line in src/Makefile:
 
-To run gpx-import, ./settings.sh src/gpx-import
+    DB := mysql
+
+to this:
+
+    DB := postgres
+
+Then run:
+
+    make -C src
+
+Then edit settings.sh to suit your environment, and then run
+gpx-import:
+
+    ./settings.sh start src/gpx-import
 
 Enjoy,
 
index c2a215a..e365434 100755 (executable)
@@ -18,6 +18,12 @@ setting PATH_TRACES /home/osm/traces
 setting PATH_IMAGES /home/osm/images
 setting PATH_TEMPLATES templates/
 
+# PostgreSQL connection
+#setting PGSQL_HOST localhost
+#setting PGSQL_USER openstreetmap
+#setting PGSQL_DB openstreetmap
+#setting PGSQL_PASS openstreetmap
+
 # MySQL connection
 setting MYSQL_HOST localhost
 setting MYSQL_USER openstreetmap