Mercurial > dive4elements > river
annotate contrib/make_flys_release/h2/createDatacage.sh @ 8472:3f505fba522f
(issue1772) Use 0.001km tolarance instead of 0.1 to find matching km.
There is no sense to use a define here. I will not write
static final double NULLPOINTNULLNULLONE=0.001 if i just want to use that
value and not any other value which may make sense in some other place.
Using hardcoded values can have its merits and makes the code easier to
read.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 18 Nov 2014 15:24:40 +0100 |
parents | 19472d3877d6 |
children |
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 |
7768
19472d3877d6
Changed directory variable in h2 create scripts.
Raimund Renkert <rrenkert@intevation.de>
parents:
5250
diff
changeset
|
5 #DIR=`dirname $0` |
19472d3877d6
Changed directory variable in h2 create scripts.
Raimund Renkert <rrenkert@intevation.de>
parents:
5250
diff
changeset
|
6 #DIR=`readlink -f "$DIR"` |
19472d3877d6
Changed directory variable in h2 create scripts.
Raimund Renkert <rrenkert@intevation.de>
parents:
5250
diff
changeset
|
7 DIR=`pwd` |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
8 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 CLASSPATH= |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 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
|
11 CLASSPATH=$CLASSPATH:$l |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 done |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 export CLASSPATH |
5250
3ba2917e49d3
Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents:
4065
diff
changeset
|
15 if [ $# != 1 ]; then |
3ba2917e49d3
Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents:
4065
diff
changeset
|
16 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
|
17 fi |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
19 java org.h2.tools.RunScript \ |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
20 -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
|
21 -script "$1" |