annotate contrib/make_flys_release/make_release.sh @ 5243:2e519b08cff3

Added tag 2.9.12 for changeset 88e3473a3846
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 12 Mar 2013 11:32:42 +0100
parents 613d2f494728
children 8fa0c522bef3
rev   line source
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
1 #!/bin/bash
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
2
5220
613d2f494728 Handle return codes in the make_flys_release script
Andre Heinecke <aheinecke@intevation.de>
parents: 5119
diff changeset
3 set -e
613d2f494728 Handle return codes in the make_flys_release script
Andre Heinecke <aheinecke@intevation.de>
parents: 5119
diff changeset
4
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
5 echo "INFO: define required variables"
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
6 ARTIFACTS_HG_REPO="http://wald.intevation.org/hg/dive4elements/artifacts"
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
7 HTTPCLIIENT_HG_REPO="http://wald.intevation.org/hg/dive4elements/http-client"
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
8 FLYS_HG_REPO="http://wald.intevation.org/hg/dive4elements/flys"
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
9
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
10 ARTIFACTS_HG="hg.artifacts"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
11 HTTPCLIENT_HG="hg.http-client"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
12 FLYS_HG="hg.flys"
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 PREFIX="flys-"
4485
b51f6bb188d7 Made REALEASE setable
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4484
diff changeset
15 RELEASE=${RELEASE:-default}
4151
0182916dcb01 Added date to release package. strip OpenLayers a bit
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4065
diff changeset
16 RELEASE_DATE=`date +'%Y-%m-%d'`
4485
b51f6bb188d7 Made REALEASE setable
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4484
diff changeset
17 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
18
4503
f91260ccef03 Fixed typo in make_release script.
Raimund Renkert <rrenkert@intevation.de>
parents: 4494
diff changeset
19 ARTIFACT_PORT=${ARTIFACT_PORT:-9002}
4487
a08d25476f0a Fixed web.xml seding
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4485
diff changeset
20 TOMCAT_PORT=${TOMCAT_PORT:-8005}
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
21
4889
8118f9b0ee7b Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents: 4651
diff changeset
22 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.atlas.intevation.de}
5119
15ff9ddc765e Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4889
diff changeset
23 WIKI_URL=${WIKI_URL:-https://flys-intern.intevation.de/Flys-3.0}
4494
334c68344eb5 Fix hard coded mapserver url
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4493
diff changeset
24
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
25 echo "INFO: create server directories"
4151
0182916dcb01 Added date to release package. strip OpenLayers a bit
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4065
diff changeset
26 mkdir -p $DIRECTORY/server/bin/lib/own
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
27 mkdir $DIRECTORY/server/shapefiles
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
28 mkdir $DIRECTORY/client
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
29
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
30 echo "INFO: checkout sources"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
31 echo " ... checkout $ARTIFACTS_HG_REPO"
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
32
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
33 rm -rf $ARTIFACTS_HG
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
34 hg clone $ARTIFACTS_HG_REPO $ARTIFACTS_HG
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
35 (cd $ARTIFACTS_HG && hg co $RELEASE)
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
36
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
37 echo " ... checkout $HTTPCLIIENT_HG_REPO"
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
38 rm -rf $HTTPCLIENT_HG
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
39 hg clone $HTTPCLIIENT_HG_REPO $HTTPCLIENT_HG
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
40 (cd $HTTPCLIENT_HG && hg co $RELEASE)
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
41
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
42 echo " ... checkout $FLYS_HG_REPO"
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
43 rm -rf $FLYS_HG
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
44 hg clone $FLYS_HG_REPO $FLYS_HG
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
45 (cd $FLYS_HG && hg co $RELEASE)
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
46
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
47 # adapt client configuration
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
48 echo "INFO: prepare configuration of web client"
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
49
4503
f91260ccef03 Fixed typo in make_release script.
Raimund Renkert <rrenkert@intevation.de>
parents: 4494
diff changeset
50 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \
4487
a08d25476f0a Fixed web.xml seding
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4485
diff changeset
51 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
52 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
53
5119
15ff9ddc765e Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4889
diff changeset
54 sed -i -e "s@/tmp/flys-client.log@/var/log/flys/client-${RELEASE}.log@g" \
4493
b15f82f0d652 Fixed path to client logging
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4491
diff changeset
55 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/log4j.properties
b15f82f0d652 Fixed path to client logging
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4491
diff changeset
56
5119
15ff9ddc765e Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4889
diff changeset
57 # Fix the Wiki URLs
15ff9ddc765e Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4889
diff changeset
58 find $FLYS_HG/flys-artifacts/src/main/resources/ -name messages_\*.properties \
15ff9ddc765e Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4889
diff changeset
59 -exec sed -i "s@https://flys-intern.intevation.de/Flys-3.0@${WIKI_URL}@g" {} \;
15ff9ddc765e Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4889
diff changeset
60
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
61 echo "INFO: download OpenLayers-2.11 for client"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
62 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
63 tar xvfz OpenLayers-2.11.tar.gz
4151
0182916dcb01 Added date to release package. strip OpenLayers a bit
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4065
diff changeset
64 # TODO: Remove more superfluous OpenLayers stuff.
0182916dcb01 Added date to release package. strip OpenLayers a bit
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4065
diff changeset
65 rm -rf OpenLayers-2.11/doc
0182916dcb01 Added date to release package. strip OpenLayers a bit
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4065
diff changeset
66 rm -rf OpenLayers-2.11/tests
0182916dcb01 Added date to release package. strip OpenLayers a bit
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4065
diff changeset
67 rm -rf OpenLayers-2.11/examples
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
68 mv OpenLayers-2.11 $FLYS_HG/flys-client/src/main/webapp/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
69
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
70 # compile and build our code stuff
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
71 echo "INFO: compile and build sources"
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
72 mvn -f $ARTIFACTS_HG/pom.xml clean compile package install
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
73 mvn -f $FLYS_HG/flys-backend/pom.xml clean compile package install
4503
f91260ccef03 Fixed typo in make_release script.
Raimund Renkert <rrenkert@intevation.de>
parents: 4494
diff changeset
74 mvn -f $FLYS_HG/flys-artifacts/pom.xml clean compile package dependency:copy-dependencies install
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
75 mvn -f $HTTPCLIENT_HG/pom.xml clean compile package install
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
76 mvn -f $FLYS_HG/flys-client/pom.xml clean compile package
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
77
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
78 ## fetch the java stuff
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
79 echo "INFO: copy dependencies and libs"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
80 cp $ARTIFACTS_HG/artifact-database/target/artifact-database-1.0-SNAPSHOT.jar $DIRECTORY/server/bin/lib/own/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
81 cp $ARTIFACTS_HG/artifacts/target/artifacts-1.0-SNAPSHOT.jar $DIRECTORY/server/bin/lib/own/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
82 cp $ARTIFACTS_HG/artifacts-common/target/artifacts-common-1.0-SNAPSHOT.jar $DIRECTORY/server/bin/lib/own/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
83 cp $FLYS_HG/flys-backend/target/flys-backend-1.0-SNAPSHOT.jar $DIRECTORY/server/bin/lib/own/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
84 cp $FLYS_HG/flys-artifacts/target/flys-artifacts-1.0-SNAPSHOT.jar $DIRECTORY/server/bin/lib/own/
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
85 cp $FLYS_HG/flys-client/target/FLYS-1.0-SNAPSHOT.war $DIRECTORY/client/flys-${RELEASE}.war
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
86 cp $FLYS_HG/flys-artifacts/target/dependency/* $DIRECTORY/server/bin/lib/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
87
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
88 echo "INFO: copy scripts and libraries to target destination"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
89 cp bin/run.sh $DIRECTORY/server/bin/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
90 cp bin/wsplgen.exe $DIRECTORY/server/bin/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
91 cp libs/* $DIRECTORY/server/bin/lib/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
92
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
93 #echo "INFO: remove PostgreSQL and PostGIS libraries"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
94 #rm $DIRECTORY/server/bin/lib/postg*
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
95 #rm $DIRECTORY/server/bin/lib/hibernate-spatial-postgis*
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
96
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
97 echo "INFO: remove Oralce libraries"
4651
83a42e6a562d Added view for selecting ranges in wsts.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4503
diff changeset
98 rm -f $DIRECTORY/server/bin/lib/hibernate-spatial-oracle-1.1.jar
83a42e6a562d Added view for selecting ranges in wsts.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4503
diff changeset
99 rm -f $DIRECTORY/server/bin/lib/ojdbc*
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
100
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
101 # fetch the configuration stuff
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
102 echo "INFO: copy default configuration to target destination"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
103 cp -R $FLYS_HG/flys-artifacts/doc/conf $DIRECTORY/server/
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
104
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
105 #cp confs/* $DIRECTORY/server/conf/
4651
83a42e6a562d Added view for selecting ranges in wsts.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4503
diff changeset
106 mkdir -p $DIRECTORY/server/conf
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
107
4503
f91260ccef03 Fixed typo in make_release script.
Raimund Renkert <rrenkert@intevation.de>
parents: 4494
diff changeset
108 sed "s/8999/$ARTIFACT_PORT/g" \
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
109 confs/rest-server.xml \
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
110 > $DIRECTORY/server/conf/rest-server.xml
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
111
4889
8118f9b0ee7b Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents: 4651
diff changeset
112 sed -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
113 confs/floodmap.xml \
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
114 > $DIRECTORY/server/conf/floodmap.xml
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
115
4889
8118f9b0ee7b Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents: 4651
diff changeset
116 sed -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \
8118f9b0ee7b Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents: 4651
diff changeset
117 confs/rivermap.xml \
8118f9b0ee7b Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents: 4651
diff changeset
118 > $DIRECTORY/server/conf/rivermap.xml
8118f9b0ee7b Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents: 4651
diff changeset
119
5119
15ff9ddc765e Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4889
diff changeset
120 sed "s@/tmp/flys-server-default.log@/var/log/flys/server-${RELEASE}.log@" \
4484
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
121 confs/log4j.properties \
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
122 > $DIRECTORY/server/conf/log4j.properties
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
123
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
124 # TODO: Use templating here
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
125 cp confs/seddb-db.xml $DIRECTORY/server/conf/seddb-db.xml
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
126 cp confs/backend-db.xml $DIRECTORY/server/conf/backend-db.xml
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
127 cp confs/artifact-db.xml $DIRECTORY/server/conf/artifact-db.xml
7e82d51c5a27 Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4151
diff changeset
128 cp confs/datacage-db.xml $DIRECTORY/server/conf/datacage-db.xml
4491
302f5da348bb Fixed problem with mapserver fonts
Sascha L. Teichmann <teichmann@intevation.de>
parents: 4487
diff changeset
129 cp confs/mapserver/fontset.txt $DIRECTORY/server/conf/mapserver/fontset.txt
4065
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
130
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
131 cp $ARTIFACTS_HG/artifact-database/doc/schema-h2.sql h2/artifacts-h2.sql
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
132 cp $FLYS_HG/flys-artifacts/doc/conf/datacage.sql h2/datacage.sql
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
133
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
134 echo "INFO: create h2 database for artifacts and datacage"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
135 h2/createArtifacts.sh
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
136 h2/createDatacage.sh
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
137
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
138 mv artifactsdb $DIRECTORY/server/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
139 mv datacagedb $DIRECTORY/server/
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
140
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
141 echo "INFO: create tarball"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
142 tar cvfz $DIRECTORY.tar.gz $DIRECTORY
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
143
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
144 echo "INFO: remove temporary files and directories"
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
145 rm -rf $ARTIFACTS_HG
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
146 rm -rf $HTTPCLIENT_HG
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
147 rm -rf $FLYS_HG
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
148 rm -rf $DIRECTORY
9d404069f361 Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
149 rm -rf OpenLayers.2.11.tar.gz

http://dive4elements.wald.intevation.org