Mercurial > dive4elements > river
annotate contrib/make_flys_release/make_release.sh @ 8498:6e7aeec2238e
Remove obsolete Wiki-URL config in client.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 15 Dec 2014 17:22:16 +0100 |
parents | dc0351c5d098 |
children | 5096b4ed230d |
rev | line source |
---|---|
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
1 #!/bin/bash |
8493
07a369e6e277
Correct header for release script.
Tom Gottfried <tom@intevation.de>
parents:
8485
diff
changeset
|
2 # Release script for Dive4Elements River |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
3 # |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
4 # Authors: |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
5 # Andre Heinecke <aheinecke@intevation.de> |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
6 # |
8493
07a369e6e277
Correct header for release script.
Tom Gottfried <tom@intevation.de>
parents:
8485
diff
changeset
|
7 # Copyright (C) 2011 - 2014 by Bundesanstalt für Gewässerkunde |
07a369e6e277
Correct header for release script.
Tom Gottfried <tom@intevation.de>
parents:
8485
diff
changeset
|
8 # Software engineering by Intevation GmbH |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
9 # |
8493
07a369e6e277
Correct header for release script.
Tom Gottfried <tom@intevation.de>
parents:
8485
diff
changeset
|
10 # This file is Free Software under the GNU AGPL (>=v3) |
07a369e6e277
Correct header for release script.
Tom Gottfried <tom@intevation.de>
parents:
8485
diff
changeset
|
11 # and comes with ABSOLUTELY NO WARRANTY! Check out the |
07a369e6e277
Correct header for release script.
Tom Gottfried <tom@intevation.de>
parents:
8485
diff
changeset
|
12 # documentation coming with Dive4Elements River for details. |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 |
5220
613d2f494728
Handle return codes in the make_flys_release script
Andre Heinecke <aheinecke@intevation.de>
parents:
5119
diff
changeset
|
14 set -e |
8080
13c3d861db1d
Build is locale sensitive. Force a UTF-8 locale for building.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
7996
diff
changeset
|
15 LC_ALL=en_US.UTF-8 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
16 DEFAULT_WD=/tmp/flys-release |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
17 DEVELOPER=aheinecke |
5220
613d2f494728
Handle return codes in the make_flys_release script
Andre Heinecke <aheinecke@intevation.de>
parents:
5119
diff
changeset
|
18 |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
19 ARTIFACTS_HG_REPO="http://wald.intevation.org/hg/dive4elements/framework" |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
20 HTTPCLIIENT_HG_REPO="http://wald.intevation.org/hg/dive4elements/http-client" |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
21 FLYS_HG_REPO="http://wald.intevation.org/hg/dive4elements/river" |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
22 |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
23 REPOS="river http-client framework" |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
24 # Do not use spaces in path |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
25 FLYS_SOURCE_DIR=/local-vol1/aheinecke/flys-release |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
26 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
27 SCRIPT_DIR=$(readlink -f `dirname $0`) |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
28 usage(){ |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
29 cat << EOF |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
30 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
31 usage: $0 [options] VERSION |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
32 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
33 Create a flys package |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
34 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
35 OPTIONS: |
8494
76994a0187fa
Do not give Oracle-JARs with hardcoded personal path in release script.
Tom Gottfried <tom@intevation.de>
parents:
8493
diff
changeset
|
36 -?, --help Show this message |
76994a0187fa
Do not give Oracle-JARs with hardcoded personal path in release script.
Tom Gottfried <tom@intevation.de>
parents:
8493
diff
changeset
|
37 -w The working directory to use (do not use spaces in path) |
76994a0187fa
Do not give Oracle-JARs with hardcoded personal path in release script.
Tom Gottfried <tom@intevation.de>
parents:
8493
diff
changeset
|
38 Default: $DEFAULT_WD |
76994a0187fa
Do not give Oracle-JARs with hardcoded personal path in release script.
Tom Gottfried <tom@intevation.de>
parents:
8493
diff
changeset
|
39 -t Tag the current default branch as "VERSION" |
76994a0187fa
Do not give Oracle-JARs with hardcoded personal path in release script.
Tom Gottfried <tom@intevation.de>
parents:
8493
diff
changeset
|
40 -o, --oracle Release is for oracle. |
76994a0187fa
Do not give Oracle-JARs with hardcoded personal path in release script.
Tom Gottfried <tom@intevation.de>
parents:
8493
diff
changeset
|
41 Suitable jar-files for JDBC driver and |
76994a0187fa
Do not give Oracle-JARs with hardcoded personal path in release script.
Tom Gottfried <tom@intevation.de>
parents:
8493
diff
changeset
|
42 hibernate-spatial have to be given with the |
76994a0187fa
Do not give Oracle-JARs with hardcoded personal path in release script.
Tom Gottfried <tom@intevation.de>
parents:
8493
diff
changeset
|
43 environment variables ORACLE_JDBC and ORACLE_HIBERNATE |
5493
2be02d6ad9dc
Allow default version in packaging script
Andre Heinecke <aheinecke@intevation.de>
parents:
5418
diff
changeset
|
44 VERSION must be in the format MAYOR.MINOR.PATCH or default |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
45 EOF |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
46 exit 0 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
47 } |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
48 # --backend-db-url Url of database backend. Default: $BACKENDURL |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
49 # --backend-db-pass Backend db password. Default: $BACKENDPASS |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
50 # --backend-db-port Backend db port. Default: $BACKENDPORT |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
51 # --backend-db-user Backend db user. Default: $BACKENDUSER |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
52 # --backend-db-backend Backend db backend name. Default: $BACKENDBACK |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
53 # --seddb-url Sediment db url. Default: $SEDDBURL |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
54 # --seddb-port Sediment db port. Default: $SEDDBPORT |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
55 # --seddb-user Sediment db user. Default: $SEDDBUSER |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
56 # --seddb-pass Sediment db password. Default: $SEDDBPASS |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
57 # --seddb-back Sediment db backend. Default: $SEDDBBACK |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
58 TOMCAT_PORT=${TOMCAT_PORT:-8282} |
6224
8f129977e76e
Default to a non internal wiki url
Andre Heinecke <aheinecke@intevation.de>
parents:
6164
diff
changeset
|
59 WIKI_URL=${WIKI_URL:-https://flys3-devel.bafg.de/wiki} |
5530
7f8d6b49afad
Make FONT_PATH configurable in release script.
Andre Heinecke <aheinecke@intevation.de>
parents:
5493
diff
changeset
|
60 # Prefix to FreeSans.ttf |
7f8d6b49afad
Make FONT_PATH configurable in release script.
Andre Heinecke <aheinecke@intevation.de>
parents:
5493
diff
changeset
|
61 FONT_PATH=${FONT_PATH:-/opt/flys} |
4494
334c68344eb5
Fix hard coded mapserver url
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4493
diff
changeset
|
62 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
63 # Backend configuration |
5268
df7028d0cb93
Add LOG_DIR to make release to configure a logging directory. And
Andre Heinecke <aheinecke@intevation.de>
parents:
5255
diff
changeset
|
64 LOG_DIR=/var/log/flys |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
65 |
7775
84889738d029
Defaulting to GGinA authentication in release script instead of client sources.
Tom Gottfried <tom@intevation.de>
parents:
7771
diff
changeset
|
66 # Client configuration |
84889738d029
Defaulting to GGinA authentication in release script instead of client sources.
Tom Gottfried <tom@intevation.de>
parents:
7771
diff
changeset
|
67 AUTH=${AUTH:-GGinA} |
7813
56870a7d9811
Replace model uuid of 'Beispielfluss' with model_uuid of 'Elbe'.
Raimund Renkert <rrenkert@intevation.de>
parents:
7804
diff
changeset
|
68 ELBE_MODEL_UUID=${ELBE_MODEL_UUID:-1a4825f6-925f-11e3-8165-001f29e71d12} |
7775
84889738d029
Defaulting to GGinA authentication in release script instead of client sources.
Tom Gottfried <tom@intevation.de>
parents:
7771
diff
changeset
|
69 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
70 OPTS=`getopt -o ?w:,t,o \ |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
71 -l help,oracle \ |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
72 -n $0 -- "$@"` |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
73 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
74 if [ $? != 0 ] ; then usage; fi |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
75 eval set -- "$OPTS" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
76 while true ; do |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
77 case "$1" in |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
78 "-?"|"--help") |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
79 usage;; |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
80 "--") |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
81 shift |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
82 break;; |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
83 "-w") |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
84 WORK_DIR=$2 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
85 shift 2;; |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
86 "-o"|"--oracle") |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
87 BUILD_ORACLE="TRUE" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
88 shift;; |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
89 "-t") |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
90 DO_TAG="TRUE" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
91 shift;; |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
92 *) |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
93 echo "Unknown Option $1" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
94 usage;; |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
95 esac |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
96 done |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
97 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
98 if [ $# != 1 ]; then |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
99 usage |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
100 fi |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
101 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
102 VERSION=$1 |
7996
c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
Tom Gottfried <tom@intevation.de>
parents:
7951
diff
changeset
|
103 if [ -n "`hg branches | sed -n "/$VERSION/p"`" ]; then |
5493
2be02d6ad9dc
Allow default version in packaging script
Andre Heinecke <aheinecke@intevation.de>
parents:
5418
diff
changeset
|
104 ARTIFACT_PORT=${ARTIFACT_PORT:-29999} |
2be02d6ad9dc
Allow default version in packaging script
Andre Heinecke <aheinecke@intevation.de>
parents:
5418
diff
changeset
|
105 else |
2be02d6ad9dc
Allow default version in packaging script
Andre Heinecke <aheinecke@intevation.de>
parents:
5418
diff
changeset
|
106 ARTIFACT_PORT=${ARTIFACT_PORT:-`echo 1$VERSION | sed 's/\.//g'`} |
2be02d6ad9dc
Allow default version in packaging script
Andre Heinecke <aheinecke@intevation.de>
parents:
5418
diff
changeset
|
107 fi |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
108 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
109 if [ -z $WORK_DIR ]; then |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
110 WORK_DIR=$DEFAULT_WD |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
111 fi |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
112 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
113 mkdir -p $WORK_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
114 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
115 if [ ! -d $FLYS_SOURCE_DIR ]; then |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
116 mkdir -p $FLYS_SOURCE_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
117 echo "Cloning sources" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
118 cd $FLYS_SOURCE_DIR |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
119 hg clone $ARTIFACTS_HG_REPO framework |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
120 hg clone $HTTPCLIIENT_HG_REPO http-client |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
121 hg clone $FLYS_HG_REPO river |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
122 else |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
123 echo "Updating sources / Reverting changes" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
124 cd $FLYS_SOURCE_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
125 for repo in $REPOS; do |
5383
c841eac48474
First revert then update in the make release script to avoid conflicts
Andre Heinecke <aheinecke@intevation.de>
parents:
5325
diff
changeset
|
126 cd $repo && hg pull && hg revert -a && hg up && cd $FLYS_SOURCE_DIR |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
127 done; |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
128 fi |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
129 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
130 if [ "$DO_TAG" = "TRUE" ]; then |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
131 echo "Tagging version $VERSION" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
132 for repo in $REPOS; do |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
133 cd $repo |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
134 CHANGESET=$(hg log -l1 |head -1 | awk -F: '{print $3}') |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
135 echo "" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
136 echo "Do you really want to tag $repo rev: $CHANGESET as Version $VERSION?" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
137 echo "press enter to continue or CTRL+C to abort." |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
138 echo "" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
139 hg log -l1 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
140 read |
5320
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
141 OLD_REV=$(cat .hgtags | tail -1 | awk '{print $2}') |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
142 hg tag $VERSION -m "Added tag $VERSION for changeset $CHANGESET" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
143 hg push ssh://$DEVELOPER@scm.wald.intevation.org/hg/dive4elements/$repo |
5320
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
144 echo "Changelog for $repo" >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
145 echo "#############################################################################" \ |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
146 >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
147 hg log -r $VERSION:$OLD_REV --style changelog >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
148 cd $FLYS_SOURCE_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
149 done; |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
150 fi |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
151 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
152 # Update to current version |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
153 for repo in $REPOS; do |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
154 cd $repo |
7996
c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
Tom Gottfried <tom@intevation.de>
parents:
7951
diff
changeset
|
155 if [ -z "`hg tags | sed -n "/$VERSION/p"`" -a -z "`hg branches | sed -n "/$VERSION/p"`" ] |
c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
Tom Gottfried <tom@intevation.de>
parents:
7951
diff
changeset
|
156 then |
c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
Tom Gottfried <tom@intevation.de>
parents:
7951
diff
changeset
|
157 echo "[WARNING]: $VERSION not found in $repo! Updating to default." |
c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
Tom Gottfried <tom@intevation.de>
parents:
7951
diff
changeset
|
158 hg up default |
c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
Tom Gottfried <tom@intevation.de>
parents:
7951
diff
changeset
|
159 else |
c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
Tom Gottfried <tom@intevation.de>
parents:
7951
diff
changeset
|
160 hg up "$VERSION" |
c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
Tom Gottfried <tom@intevation.de>
parents:
7951
diff
changeset
|
161 fi |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
162 cd $FLYS_SOURCE_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
163 done |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
164 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
165 rm -rf "$WORK_DIR/server" "$WORK_DIR/client" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
166 cd $WORK_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
167 mkdir -p "$WORK_DIR/server/bin/lib/own" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
168 mkdir "$WORK_DIR/server/shapefiles" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
169 mkdir "$WORK_DIR/client" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
170 |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
171 echo "[INFO]: Preparing configuration of web client" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
172 echo "[INFO]: Tomcat Port: $TOMCAT_PORT" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
173 echo "[INFO]: Artifact Port: $ARTIFACT_PORT" |
5692
d2c6d4ca6841
Add print url to relase script
Andre Heinecke <aheinecke@intevation.de>
parents:
5678
diff
changeset
|
174 |
d2c6d4ca6841
Add print url to relase script
Andre Heinecke <aheinecke@intevation.de>
parents:
5678
diff
changeset
|
175 #Needs to be done before the tomcat replacement below |
8402
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
176 if [ -r "$FEATURES_XML" ]; then |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
177 cp "$FEATURES_XML" \ |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
178 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/features.xml |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
179 fi |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
180 |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
181 if [ -r "$CLIENT_LOG4J" ]; then |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
182 cp "$CLIENT_LOG4J" \ |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
183 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
184 fi |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
185 |
8445
fe43340352bc
(issue1769) Adapt release script for new print url.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
8402
diff
changeset
|
186 sed -i -e "s@http://localhost:8080/d4e-river/flys/mapfish-print@https://localhost/flys-${VERSION}/flys/mapfish-print@g" \ |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
187 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/web.xml |
5692
d2c6d4ca6841
Add print url to relase script
Andre Heinecke <aheinecke@intevation.de>
parents:
5678
diff
changeset
|
188 |
4503
f91260ccef03
Fixed typo in make_release script.
Raimund Renkert <rrenkert@intevation.de>
parents:
4494
diff
changeset
|
189 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
|
190 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
191 $FLYS_SOURCE_DIR/river/gwt-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
|
192 |
7775
84889738d029
Defaulting to GGinA authentication in release script instead of client sources.
Tom Gottfried <tom@intevation.de>
parents:
7771
diff
changeset
|
193 sed -i -e "s@<param-value>plain</param-value>@<param-value>$AUTH</param-value>@" \ |
84889738d029
Defaulting to GGinA authentication in release script instead of client sources.
Tom Gottfried <tom@intevation.de>
parents:
7771
diff
changeset
|
194 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/web.xml |
84889738d029
Defaulting to GGinA authentication in release script instead of client sources.
Tom Gottfried <tom@intevation.de>
parents:
7771
diff
changeset
|
195 |
6419
47f4d2c1866a
Add replacement rule for wiki url in make_release.sh
Christian Lins <christian.lins@intevation.de>
parents:
6225
diff
changeset
|
196 sed -i -e "s@https://flys3-devel.bafg.de/wiki@${WIKI_URL}@g" \ |
6440
004b87755fa4
fix typo in make_release.sh
Tom Gottfried <tom@intevation.de>
parents:
6419
diff
changeset
|
197 $FLYS_SOURCE_DIR/river/gwt-client/src/main/java/org/dive4elements/river/client/client/config.xml |
6419
47f4d2c1866a
Add replacement rule for wiki url in make_release.sh
Christian Lins <christian.lins@intevation.de>
parents:
6225
diff
changeset
|
198 |
8402
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
199 sed -i -e \ |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
200 "s@/var/log/d4e-river/d4e-client.log@${LOG_DIR}/client-VERSION.log@g" \ |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
201 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
202 |
35b3bbd1365f
Add possibility to give custom client log4j.properties.
Tom Gottfried <tom@intevation.de>
parents:
8385
diff
changeset
|
203 sed -i -e "s@VERSION@${VERSION}@g" \ |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
204 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/log4j.properties |
4493
b15f82f0d652
Fixed path to client logging
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4491
diff
changeset
|
205 |
7813
56870a7d9811
Replace model uuid of 'Beispielfluss' with model_uuid of 'Elbe'.
Raimund Renkert <rrenkert@intevation.de>
parents:
7804
diff
changeset
|
206 sed -i -e "s@1a4825f6-925f-11e3-8165-001f29e71d12@${ELBE_MODEL_UUID}@g" \ |
56870a7d9811
Replace model uuid of 'Beispielfluss' with model_uuid of 'Elbe'.
Raimund Renkert <rrenkert@intevation.de>
parents:
7804
diff
changeset
|
207 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/images/FLYS_Karte_interactive.html |
56870a7d9811
Replace model uuid of 'Beispielfluss' with model_uuid of 'Elbe'.
Raimund Renkert <rrenkert@intevation.de>
parents:
7804
diff
changeset
|
208 |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
209 find $FLYS_SOURCE_DIR/river/ -name \*.properties -o -name \*.xsl | \ |
5325
53aee7e9ce53
Be more aggressive when replacing the wiki url
Andre Heinecke <aheinecke@intevation.de>
parents:
5320
diff
changeset
|
210 xargs sed -i "s@https://flys-intern.intevation.de@${WIKI_URL}@g"; |
5119
15ff9ddc765e
Patch WIKI urls during release building
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4889
diff
changeset
|
211 |
7801
1431d1af84d7
Remove not publicly available WMS services and enable custom configuration through release script.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
212 if [ -r "$WMSSERVICES_XML" ]; then |
1431d1af84d7
Remove not publicly available WMS services and enable custom configuration through release script.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
213 cp "$WMSSERVICES_XML" \ |
1431d1af84d7
Remove not publicly available WMS services and enable custom configuration through release script.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
214 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/wms-services.xml |
1431d1af84d7
Remove not publicly available WMS services and enable custom configuration through release script.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
215 fi |
1431d1af84d7
Remove not publicly available WMS services and enable custom configuration through release script.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
216 |
7778
35a7c05b5cd4
Remove FLYS-specific stuff from config.yaml and allow to give a custom file in release script.
Tom Gottfried <tom@intevation.de>
parents:
7777
diff
changeset
|
217 if [ -r "$CONFIG_YAML" ]; then |
35a7c05b5cd4
Remove FLYS-specific stuff from config.yaml and allow to give a custom file in release script.
Tom Gottfried <tom@intevation.de>
parents:
7777
diff
changeset
|
218 cp "$CONFIG_YAML" $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/config.yaml |
35a7c05b5cd4
Remove FLYS-specific stuff from config.yaml and allow to give a custom file in release script.
Tom Gottfried <tom@intevation.de>
parents:
7777
diff
changeset
|
219 fi |
35a7c05b5cd4
Remove FLYS-specific stuff from config.yaml and allow to give a custom file in release script.
Tom Gottfried <tom@intevation.de>
parents:
7777
diff
changeset
|
220 |
5678
57803a199856
Update Layout and add basic UTF-8 support that is still broken
Andre Heinecke <aheinecke@intevation.de>
parents:
5671
diff
changeset
|
221 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \ |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
222 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/WEB-INF/config.yaml |
5678
57803a199856
Update Layout and add basic UTF-8 support that is still broken
Andre Heinecke <aheinecke@intevation.de>
parents:
5671
diff
changeset
|
223 |
8384
d4a2c7b83087
Add possibility to give custom config for server log.
Tom Gottfried <tom@intevation.de>
parents:
8245
diff
changeset
|
224 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
225 if [ ! -f $FLYS_SOURCE_DIR/OpenLayers-2.11.tar.gz ]; then |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
226 echo "INFO: download OpenLayers-2.11 for client" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
227 cd $FLYS_SOURCE_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
228 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
229 tar xvfz OpenLayers-2.11.tar.gz |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
230 # TODO: Remove more superfluous OpenLayers stuff. |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
231 rm -rf OpenLayers-2.11/doc |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
232 rm -rf OpenLayers-2.11/tests |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
233 rm -rf OpenLayers-2.11/examples |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
234 cd $WORK_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
235 fi |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
236 cp -r $FLYS_SOURCE_DIR/OpenLayers-2.11 $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/ |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
237 |
7939
6e852a6c72f2
Use SmartGWT version 4.1p. Updated release script to download SmartGWT.
Raimund Renkert <rrenkert@intevation.de>
parents:
7837
diff
changeset
|
238 echo "INFO: Downloading smartGWT" |
8245
bb00ee1556b9
Patch build from given date not available anymore.
Tom Gottfried <tom@intevation.de>
parents:
8080
diff
changeset
|
239 mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTGWT -Dlicense=LGPL \ |
8475
40717a3b94aa
The used patch build of SmartGWT is not available anymore.
Tom Gottfried <tom@intevation.de>
parents:
8464
diff
changeset
|
240 -DbuildNumber=4.1p -DbuildDate=2014-11-19 -Dworkdir=$WORK_DIR |
7939
6e852a6c72f2
Use SmartGWT version 4.1p. Updated release script to download SmartGWT.
Raimund Renkert <rrenkert@intevation.de>
parents:
7837
diff
changeset
|
241 |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
242 echo "INFO: compile and build sources" |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
243 mvn -f $FLYS_SOURCE_DIR/framework/pom.xml clean compile package install |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
244 mvn -f $FLYS_SOURCE_DIR/river/backend/pom.xml clean compile package install |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
245 mvn -f $FLYS_SOURCE_DIR/river/artifacts/pom.xml clean compile package dependency:copy-dependencies install |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
246 mvn -f $FLYS_SOURCE_DIR/http-client/pom.xml clean compile package install |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
247 mvn -f $FLYS_SOURCE_DIR/river/gwt-client/pom.xml clean compile package |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
248 |
7951
092678a10379
This additional version of JFreeChart prevented diagrams to be drawn.
Tom Gottfried <tom@intevation.de>
parents:
7949
diff
changeset
|
249 # remove unused Version of JFreeChart (it's a dependency of JasperReports |
092678a10379
This additional version of JFreeChart prevented diagrams to be drawn.
Tom Gottfried <tom@intevation.de>
parents:
7949
diff
changeset
|
250 # that prevents diagram generation in D4E river) |
092678a10379
This additional version of JFreeChart prevented diagrams to be drawn.
Tom Gottfried <tom@intevation.de>
parents:
7949
diff
changeset
|
251 rm $FLYS_SOURCE_DIR/river/artifacts/target/dependency/jfreechart-1.0.12.jar |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
252 |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
253 echo "INFO: copy dependencies and libs" |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
254 cp $FLYS_SOURCE_DIR/framework/artifact-database/target/artifact-database-1.0-SNAPSHOT.jar $WORK_DIR/server/bin/lib/own/ |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
255 cp $FLYS_SOURCE_DIR/framework/artifacts/target/artifacts-1.0-SNAPSHOT.jar $WORK_DIR/server/bin/lib/own/ |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
256 cp $FLYS_SOURCE_DIR/framework/artifacts-common/target/artifacts-common-1.0-SNAPSHOT.jar $WORK_DIR/server/bin/lib/own/ |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
257 cp $FLYS_SOURCE_DIR/river/backend/target/river-backend-1.0-SNAPSHOT.jar $WORK_DIR/server/bin/lib/own/ |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
258 cp $FLYS_SOURCE_DIR/river/artifacts/target/river-artifacts-1.0-SNAPSHOT.jar $WORK_DIR/server/bin/lib/own/ |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
259 cp $FLYS_SOURCE_DIR/river/gwt-client/target/gwt-client-1.0-SNAPSHOT.war $WORK_DIR/client/flys-${VERSION}.war |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
260 cp $FLYS_SOURCE_DIR/river/artifacts/target/dependency/* $WORK_DIR/server/bin/lib/ |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
261 |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
262 echo "INFO: copy scripts and libraries to target destination" |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
263 cp ${SCRIPT_DIR}/bin/run.sh $WORK_DIR/server/bin/ |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
264 cp ${SCRIPT_DIR}/libs/* $WORK_DIR/server/bin/lib/ |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
265 |
7797
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7783
diff
changeset
|
266 echo "INFO: download WSPLGEN" |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7783
diff
changeset
|
267 wget https://wald.intevation.org/frs/download.php/1496/wsplgen-linux-64bit-static.gz |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7783
diff
changeset
|
268 gunzip wsplgen-linux-64bit-static.gz |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7783
diff
changeset
|
269 echo "16d60047aa114d69e9435dbbe56b6981b4e1c445 wsplgen-linux-64bit-static" | \ |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7783
diff
changeset
|
270 sha1sum -c |
7816
286c09ff6fb8
Release script broke with r7814:242e790fb4ee.
Tom Gottfried <tom@intevation.de>
parents:
7813
diff
changeset
|
271 mv wsplgen-linux-64bit-static $WORK_DIR/server/bin/wsplgen |
286c09ff6fb8
Release script broke with r7814:242e790fb4ee.
Tom Gottfried <tom@intevation.de>
parents:
7813
diff
changeset
|
272 chmod +x $WORK_DIR/server/bin/wsplgen |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
273 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
274 if [ "$BUILD_ORACLE" = "TRUE" ]; then |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
275 echo "INFO: remove PostgreSQL and PostGIS libraries" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
276 rm $WORK_DIR/server/bin/lib/postg* |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
277 rm $WORK_DIR/server/bin/lib/hibernate-spatial-postgis* |
5320
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
278 if [ ! -f $ORACLE_JDBC ]; then |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
279 echo "Could not find oracle jdbc in $ORACLE_JDBC" |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
280 echo "Please make sure that the ORACLE_JDBC variable is set correctly" |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
281 exit 1 |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
282 fi |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
283 if [ ! -f $ORACLE_HIBERNATE ]; then |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
284 echo "Could not find hibernate-spatial-oracle in $ORACLE_HIBERNATE" |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
285 echo "Please make sure that the ORACLE_HIBERNATE variable is set correctly" |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
286 exit 1 |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
287 fi |
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
288 cp $ORACLE_HIBERNATE $ORACLE_JDBC $WORK_DIR/server/bin/lib/ |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
289 else |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
290 echo "INFO: remove Oralce libraries" |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
291 rm -f $WORK_DIR/server/bin/lib/hibernate-spatial-oracle-1.1.jar |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
292 rm -f $WORK_DIR/server/bin/lib/ojdbc* |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
293 fi |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
294 |
8495
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
295 |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
296 echo "INFO: copy default configuration to target destination" |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
297 cp -R $FLYS_SOURCE_DIR/river/artifacts/doc/conf $WORK_DIR/server/ |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
298 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
299 sed -i "s/8181/$ARTIFACT_PORT/g" \ |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
300 $WORK_DIR/server/conf/rest-server.xml |
4484
7e82d51c5a27
Improved build script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4151
diff
changeset
|
301 |
8495
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
302 if [ -n $DGM_PATH ]; then |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
303 sed -i -e "s@<dgm-path>/path/to/rivers/</dgm-path>@<dgm-path>${DGM_PATH}</dgm-path>@g" \ |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
304 $WORK_DIR/server/conf/conf.xml |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
305 fi |
5530
7f8d6b49afad
Make FONT_PATH configurable in release script.
Andre Heinecke <aheinecke@intevation.de>
parents:
5493
diff
changeset
|
306 |
8495
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
307 if [ -n $WIKI_URL ]; then |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
308 sed -i -e "s@<help-url>http://example.com</help-url>@<help-url>${WIKI_URL}</help-url>@g" \ |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
309 $WORK_DIR/server/conf/conf.xml |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
310 fi |
5268
df7028d0cb93
Add LOG_DIR to make release to configure a logging directory. And
Andre Heinecke <aheinecke@intevation.de>
parents:
5255
diff
changeset
|
311 |
8495
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
312 if [ -d $SERVER_CONF ]; then |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
313 echo "INFO: copy custom configuration to target destination" |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
314 cp -R $SERVER_CONF/* $WORK_DIR/server/conf/ |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
315 for file in `find $WORK_DIR/server/conf -type f`; do |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
316 sed -i -e "s@D4E_VERSION@${VERSION}@g" $file |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
317 done |
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
318 fi |
5602
a586153a277a
Add DGM_PATH variable
Andre Heinecke <aheinecke@intevation.de>
parents:
5530
diff
changeset
|
319 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
320 |
8495
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
321 echo "INFO: create h2 database for artifacts and datacage" |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
322 mkdir $WORK_DIR/artifactsdb |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
323 mkdir $WORK_DIR/datacagedb |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
324 |
5900
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
325 cp $FLYS_SOURCE_DIR/framework/artifact-database/doc/schema-h2.sql $WORK_DIR/artifactsdb/artifacts-h2.sql |
8698e3284b7a
Update after renaming and remove the binary artifact-database and common
Andre Heinecke <aheinecke@intevation.de>
parents:
5723
diff
changeset
|
326 cp $FLYS_SOURCE_DIR/river/artifacts/doc/conf/datacage.sql $WORK_DIR/datacagedb/datacage.sql |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
327 |
7771
e2102c4b7b07
Change to work dir bevor creating artifacts and datacage db
Andre Heinecke <aheinecke@intevation.de>
parents:
7008
diff
changeset
|
328 cd $WORK_DIR |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
329 $SCRIPT_DIR/h2/createArtifacts.sh $WORK_DIR/artifactsdb/artifacts-h2.sql |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
330 $SCRIPT_DIR/h2/createDatacage.sh $WORK_DIR/datacagedb/datacage.sql |
7771
e2102c4b7b07
Change to work dir bevor creating artifacts and datacage db
Andre Heinecke <aheinecke@intevation.de>
parents:
7008
diff
changeset
|
331 cd - |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
332 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
333 mv $WORK_DIR/artifactsdb $WORK_DIR/server/ |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
334 mv $WORK_DIR/datacagedb $WORK_DIR/server/ |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
335 |
8495
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
336 if [ -f $INSTALL ]; then |
8464
5dd6cc9fec1e
Add possibility to pack install-script in release tarball.
Tom Gottfried <tom@intevation.de>
parents:
8450
diff
changeset
|
337 echo "INFO: prepare custom installation script" |
5dd6cc9fec1e
Add possibility to pack install-script in release tarball.
Tom Gottfried <tom@intevation.de>
parents:
8450
diff
changeset
|
338 cp $INSTALL $WORK_DIR |
8495
dc0351c5d098
Artifact-server config in release script: remove installation specific defaults and give the possibility to overwrite any config-file.
Tom Gottfried <tom@intevation.de>
parents:
8494
diff
changeset
|
339 sed -i "s/D4E_VERSION/$VERSION/g" $WORK_DIR/`basename $INSTALL` |
8464
5dd6cc9fec1e
Add possibility to pack install-script in release tarball.
Tom Gottfried <tom@intevation.de>
parents:
8450
diff
changeset
|
340 fi |
5dd6cc9fec1e
Add possibility to pack install-script in release tarball.
Tom Gottfried <tom@intevation.de>
parents:
8450
diff
changeset
|
341 |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
342 echo "INFO: create tarball" |
6612
e5d8cbce3040
Add cleanup to the release script
Andre Heinecke <aheinecke@intevation.de>
parents:
6440
diff
changeset
|
343 if [ -d "$WORK_DIR/flys-$VERSION" ]; then |
e5d8cbce3040
Add cleanup to the release script
Andre Heinecke <aheinecke@intevation.de>
parents:
6440
diff
changeset
|
344 echo "INFO: removing old directory" |
e5d8cbce3040
Add cleanup to the release script
Andre Heinecke <aheinecke@intevation.de>
parents:
6440
diff
changeset
|
345 rm -rf "$WORK_DIR/flys-$VERSION" |
e5d8cbce3040
Add cleanup to the release script
Andre Heinecke <aheinecke@intevation.de>
parents:
6440
diff
changeset
|
346 fi |
e5d8cbce3040
Add cleanup to the release script
Andre Heinecke <aheinecke@intevation.de>
parents:
6440
diff
changeset
|
347 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
348 mkdir $WORK_DIR/flys-$VERSION |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
349 mv $WORK_DIR/server $WORK_DIR/client $WORK_DIR/flys-$VERSION |
8464
5dd6cc9fec1e
Add possibility to pack install-script in release tarball.
Tom Gottfried <tom@intevation.de>
parents:
8450
diff
changeset
|
350 if [ -n $INSTALL ]; then |
5dd6cc9fec1e
Add possibility to pack install-script in release tarball.
Tom Gottfried <tom@intevation.de>
parents:
8450
diff
changeset
|
351 mv $WORK_DIR/`basename $INSTALL` $WORK_DIR/flys-$VERSION |
5dd6cc9fec1e
Add possibility to pack install-script in release tarball.
Tom Gottfried <tom@intevation.de>
parents:
8450
diff
changeset
|
352 fi |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
353 cd $WORK_DIR |
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
354 tar cfz flys-$VERSION.tar.gz flys-$VERSION |
7948
36f634917104
Override bad defaults of isc-maven-plugin. Please set DEFAULT_WD in make_release_sh to something individual if you are on a multi-user system.
Tom Gottfried <tom@intevation.de>
parents:
7946
diff
changeset
|
355 #echo "INFO: cleanup" |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
356 #rm -r $WORK_DIR/flys-$VERSION |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
357 |
5251
8fa0c522bef3
Improve make_release script to optinally handle tagging and be more generic.
Andre Heinecke <aheinecke@intevation.de>
parents:
5220
diff
changeset
|
358 echo "DONE: $WORK_DIR/flys-$VERSION.tar.gz" |
5320
a7778435a4af
Improve oracle integration and generate changelog when tagging
Andre Heinecke <aheinecke@intevation.de>
parents:
5268
diff
changeset
|
359 echo "Changelog: $WORK_DIR/changes_$OLD_REV-$VERSION.txt" |