annotate contrib/make_flys_release/h2/createDatacage.sh @ 6140:60b94dec104b

Add handling of bound artifacts. When an artifact is bound to an out its facets will only be shown in that Out. They will be removed in the blackboard pass and marked as incompatible by the AttributeWriter
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 31 May 2013 15:29:30 +0200
parents 3ba2917e49d3
children 19472d3877d6
rev   line source
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
1 #!/bin/bash
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
2
5250
3ba2917e49d3 Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents: 4065
diff changeset
3 mkdir -p datacagedb
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
4
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
5 DIR=`dirname $0`
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
6 DIR=`readlink -f "$DIR"`
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
7
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
8 CLASSPATH=
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
9 for l in `find "$DIR" -name \*.jar -print`; do
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
10 CLASSPATH=$CLASSPATH:$l
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
11 done
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
12
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
13 export CLASSPATH
5250
3ba2917e49d3 Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents: 4065
diff changeset
14 if [ $# != 1 ]; then
3ba2917e49d3 Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents: 4065
diff changeset
15 echo "Usage: $0 <schema_file>"
3ba2917e49d3 Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents: 4065
diff changeset
16 fi
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
17
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
18 java org.h2.tools.RunScript \
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
19 -url jdbc:h2:`readlink -f datacagedb`/datacage \
5250
3ba2917e49d3 Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents: 4065
diff changeset
20 -script "$1"

http://dive4elements.wald.intevation.org