Mercurial > dive4elements > river
diff contrib/make_flys_release/h2/createArtifacts.sh @ 5259:7a11271f5593
Merged
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 12 Mar 2013 19:16:05 +0100 |
parents | 3ba2917e49d3 |
children | 19472d3877d6 |
line wrap: on
line diff
--- a/contrib/make_flys_release/h2/createArtifacts.sh Tue Mar 12 19:15:18 2013 +0100 +++ b/contrib/make_flys_release/h2/createArtifacts.sh Tue Mar 12 19:16:05 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"