diff contrib/make_flys_release/h2/createArtifacts.sh @ 5250:3ba2917e49d3

Remove old artifacts-h2.sql and datacage.sql and expect the path to the database scheme as a parameter in the scripts
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 12 Mar 2013 16:50:47 +0100
parents 9d404069f361
children 19472d3877d6
line wrap: on
line diff
--- a/contrib/make_flys_release/h2/createArtifacts.sh	Tue Mar 12 16:49:16 2013 +0100
+++ b/contrib/make_flys_release/h2/createArtifacts.sh	Tue Mar 12 16:50:47 2013 +0100
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-mkdir artifactsdb
+mkdir -p artifactsdb
 
 DIR=`dirname $0`
 DIR=`readlink -f "$DIR"`
@@ -12,6 +12,10 @@
 
 export CLASSPATH
 
+if [ $# != 1 ]; then
+    echo "Usage: $0 <schema_file>"
+fi
+
 java org.h2.tools.RunScript \
     -url jdbc:h2:`readlink -f artifactsdb`/artifacts \
-    -script $DIR/artifacts-h2.sql
+    -script "$1"

http://dive4elements.wald.intevation.org