Mercurial > dive4elements > river
annotate contrib/make_flys_release/make_release.sh @ 5119:15ff9ddc765e
Patch WIKI urls during release building
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 27 Feb 2013 17:12:56 +0100 |
parents | 8118f9b0ee7b |
children | 613d2f494728 |
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 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
3 echo "INFO: define required variables" |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
4 ARTIFACTS_HG_REPO="http://wald.intevation.org/hg/dive4elements/artifacts" |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
5 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
|
6 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
|
7 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
8 ARTIFACTS_HG="hg.artifacts" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 HTTPCLIENT_HG="hg.http-client" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 FLYS_HG="hg.flys" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 PREFIX="flys-" |
4485
b51f6bb188d7
Made REALEASE setable
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4484
diff
changeset
|
13 RELEASE=${RELEASE:-default} |
4151
0182916dcb01
Added date to release package. strip OpenLayers a bit
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4065
diff
changeset
|
14 RELEASE_DATE=`date +'%Y-%m-%d'` |
4485
b51f6bb188d7
Made REALEASE setable
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4484
diff
changeset
|
15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 |
4503
f91260ccef03
Fixed typo in make_release script.
Raimund Renkert <rrenkert@intevation.de>
parents:
4494
diff
changeset
|
17 ARTIFACT_PORT=${ARTIFACT_PORT:-9002} |
4487
a08d25476f0a
Fixed web.xml seding
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4485
diff
changeset
|
18 TOMCAT_PORT=${TOMCAT_PORT:-8005} |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
19 |
4889
8118f9b0ee7b
Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents:
4651
diff
changeset
|
20 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
|
21 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
|
22 |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
23 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
|
24 mkdir -p $DIRECTORY/server/bin/lib/own |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
25 mkdir $DIRECTORY/server/shapefiles |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
26 mkdir $DIRECTORY/client |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
27 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
28 echo "INFO: checkout sources" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
29 echo " ... checkout $ARTIFACTS_HG_REPO" |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
30 |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
31 rm -rf $ARTIFACTS_HG |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
32 hg clone $ARTIFACTS_HG_REPO $ARTIFACTS_HG |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
33 (cd $ARTIFACTS_HG && hg co $RELEASE) |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
34 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
35 echo " ... checkout $HTTPCLIIENT_HG_REPO" |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
36 rm -rf $HTTPCLIENT_HG |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
37 hg clone $HTTPCLIIENT_HG_REPO $HTTPCLIENT_HG |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
38 (cd $HTTPCLIENT_HG && hg co $RELEASE) |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
39 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
40 echo " ... checkout $FLYS_HG_REPO" |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
41 rm -rf $FLYS_HG |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
42 hg clone $FLYS_HG_REPO $FLYS_HG |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
43 (cd $FLYS_HG && hg co $RELEASE) |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
44 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
45 # adapt client configuration |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
46 echo "INFO: prepare configuration of web client" |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
47 |
4503
f91260ccef03
Fixed typo in make_release script.
Raimund Renkert <rrenkert@intevation.de>
parents:
4494
diff
changeset
|
48 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
|
49 -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
|
50 $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
|
51 |
5119
15ff9ddc765e
Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4889
diff
changeset
|
52 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
|
53 $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
|
54 |
5119
15ff9ddc765e
Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4889
diff
changeset
|
55 # Fix the Wiki URLs |
15ff9ddc765e
Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4889
diff
changeset
|
56 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
|
57 -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
|
58 |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
59 echo "INFO: download OpenLayers-2.11 for client" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
60 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
|
61 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
|
62 # 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
|
63 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
|
64 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
|
65 rm -rf OpenLayers-2.11/examples |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
66 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
|
67 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
68 # compile and build our code stuff |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
69 echo "INFO: compile and build sources" |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
70 mvn -f $ARTIFACTS_HG/pom.xml clean compile package install |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
71 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
|
72 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
|
73 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
|
74 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
|
75 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
76 ## fetch the java stuff |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
77 echo "INFO: copy dependencies and libs" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
78 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
|
79 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
|
80 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
|
81 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
|
82 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
|
83 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
|
84 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
|
85 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
86 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
|
87 cp bin/run.sh $DIRECTORY/server/bin/ |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
88 cp bin/wsplgen.exe $DIRECTORY/server/bin/ |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
89 cp libs/* $DIRECTORY/server/bin/lib/ |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
90 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
91 #echo "INFO: remove PostgreSQL and PostGIS libraries" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
92 #rm $DIRECTORY/server/bin/lib/postg* |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
93 #rm $DIRECTORY/server/bin/lib/hibernate-spatial-postgis* |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
94 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
95 echo "INFO: remove Oralce libraries" |
4651
83a42e6a562d
Added view for selecting ranges in wsts.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4503
diff
changeset
|
96 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
|
97 rm -f $DIRECTORY/server/bin/lib/ojdbc* |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
98 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
99 # fetch the configuration stuff |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
100 echo "INFO: copy default configuration to target destination" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
101 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
|
102 |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
103 #cp confs/* $DIRECTORY/server/conf/ |
4651
83a42e6a562d
Added view for selecting ranges in wsts.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4503
diff
changeset
|
104 mkdir -p $DIRECTORY/server/conf |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
105 |
4503
f91260ccef03
Fixed typo in make_release script.
Raimund Renkert <rrenkert@intevation.de>
parents:
4494
diff
changeset
|
106 sed "s/8999/$ARTIFACT_PORT/g" \ |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
107 confs/rest-server.xml \ |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
108 > $DIRECTORY/server/conf/rest-server.xml |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
109 |
4889
8118f9b0ee7b
Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents:
4651
diff
changeset
|
110 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
|
111 confs/floodmap.xml \ |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
112 > $DIRECTORY/server/conf/floodmap.xml |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
113 |
4889
8118f9b0ee7b
Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents:
4651
diff
changeset
|
114 sed -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ |
8118f9b0ee7b
Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents:
4651
diff
changeset
|
115 confs/rivermap.xml \ |
8118f9b0ee7b
Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents:
4651
diff
changeset
|
116 > $DIRECTORY/server/conf/rivermap.xml |
8118f9b0ee7b
Fixed config files.
Raimund Renkert <rrenkert@intevation.de>
parents:
4651
diff
changeset
|
117 |
5119
15ff9ddc765e
Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4889
diff
changeset
|
118 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
|
119 confs/log4j.properties \ |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
120 > $DIRECTORY/server/conf/log4j.properties |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
121 |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
122 # TODO: Use templating here |
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
123 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
|
124 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
|
125 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
|
126 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
|
127 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
|
128 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
129 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
|
130 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
|
131 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
132 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
|
133 h2/createArtifacts.sh |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
134 h2/createDatacage.sh |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
135 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
136 mv artifactsdb $DIRECTORY/server/ |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
137 mv datacagedb $DIRECTORY/server/ |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
138 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
139 echo "INFO: create tarball" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
140 tar cvfz $DIRECTORY.tar.gz $DIRECTORY |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
141 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
142 echo "INFO: remove temporary files and directories" |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
143 rm -rf $ARTIFACTS_HG |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
144 rm -rf $HTTPCLIENT_HG |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
145 rm -rf $FLYS_HG |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
146 rm -rf $DIRECTORY |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
147 rm -rf OpenLayers.2.11.tar.gz |