ingo@4065: #!/bin/bash ingo@4065: aheinecke@5250: mkdir -p datacagedb ingo@4065: tom@8513: DIR=`dirname $0` tom@8513: DIR=`readlink -f "$DIR"` ingo@4065: aheinecke@5250: if [ $# != 1 ]; then tom@8513: SCHEMA="$DIR/../doc/conf/datacage.sql" tom@8513: else tom@8513: SCHEMA="$1" aheinecke@5250: fi ingo@4065: tom@8513: URL="jdbc:h2:`readlink -f datacagedb`/datacage" tom@8513: tom@8513: mvn -e -Dexec.mainClass=org.h2.tools.RunScript exec:java \ tom@8513: -Dexec.args="-url $URL -script $SCHEMA"