Mercurial > dive4elements > river
comparison contrib/make_flys_release/make_release.sh @ 5777:e95427ed80e5
Merged
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 21 Apr 2013 10:46:59 +0200 |
parents | 369e3201470d |
children | 8698e3284b7a |
comparison
equal
deleted
inserted
replaced
5776:1126b9e00378 | 5777:e95427ed80e5 |
---|---|
63 # --seddb-port Sediment db port. Default: $SEDDBPORT | 63 # --seddb-port Sediment db port. Default: $SEDDBPORT |
64 # --seddb-user Sediment db user. Default: $SEDDBUSER | 64 # --seddb-user Sediment db user. Default: $SEDDBUSER |
65 # --seddb-pass Sediment db password. Default: $SEDDBPASS | 65 # --seddb-pass Sediment db password. Default: $SEDDBPASS |
66 # --seddb-back Sediment db backend. Default: $SEDDBBACK | 66 # --seddb-back Sediment db backend. Default: $SEDDBBACK |
67 TOMCAT_PORT=${TOMCAT_PORT:-8282} | 67 TOMCAT_PORT=${TOMCAT_PORT:-8282} |
68 MAPSERVER_URL=${MAPSERVER_URL:-flys-devel.intevation.de} | 68 MAPSERVER_URL=${MAPSERVER_URL:-http://flys-devel.intevation.de} |
69 WIKI_URL=${WIKI_URL:-https://flys-intern.intevation.de/Flys-3.0} | 69 WIKI_URL=${WIKI_URL:-https://flys-intern.intevation.de/Flys-3.0} |
70 # Prefix to FreeSans.ttf | 70 # Prefix to FreeSans.ttf |
71 FONT_PATH=${FONT_PATH:-/opt/flys} | 71 FONT_PATH=${FONT_PATH:-/opt/flys} |
72 | 72 |
73 # Seddb Configuration | 73 # Seddb Configuration |
185 mkdir "$WORK_DIR/client" | 185 mkdir "$WORK_DIR/client" |
186 | 186 |
187 echo "[INFO]: Preparing configuration of web client" | 187 echo "[INFO]: Preparing configuration of web client" |
188 echo "[INFO]: Tomcat Port: $TOMCAT_PORT" | 188 echo "[INFO]: Tomcat Port: $TOMCAT_PORT" |
189 echo "[INFO]: Artifact Port: $ARTIFACT_PORT" | 189 echo "[INFO]: Artifact Port: $ARTIFACT_PORT" |
190 | |
191 #Needs to be done before the tomcat replacement below | |
192 sed -i -e "s@http://localhost:8888/flys/mapfish-print@https://localhost/flys-${VERSION}/flys/mapfish-print@g" \ | |
193 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/web.xml | |
194 | |
190 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \ | 195 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \ |
191 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ | 196 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ |
192 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/web.xml | 197 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/web.xml |
193 | 198 |
194 sed -i -e "s@/tmp/flys-client.log@${LOG_DIR}/client-${VERSION}.log@g" \ | 199 sed -i -e "s@/tmp/flys-client.log@${LOG_DIR}/client-${VERSION}.log@g" \ |
195 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/log4j.properties | 200 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/log4j.properties |
196 | 201 |
197 find $FLYS_SOURCE_DIR/flys/flys-artifacts/src/main/resources/ -name messages\*.properties | \ | 202 # XXX: Are they really used at runtime? |
198 xargs sed -i "s@https://flys-intern.intevation.de/Flys-3.0@${WIKI_URL}@g"; | |
199 | |
200 find $FLYS_SOURCE_DIR/flys/ -name \*.properties -o -name \*.xsl | \ | 203 find $FLYS_SOURCE_DIR/flys/ -name \*.properties -o -name \*.xsl | \ |
201 xargs sed -i "s@https://flys-intern.intevation.de@${WIKI_URL}@g"; | 204 xargs sed -i "s@https://flys-intern.intevation.de@${WIKI_URL}@g"; |
205 | |
206 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \ | |
207 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/config.yaml | |
202 | 208 |
203 if [ ! -f $FLYS_SOURCE_DIR/OpenLayers-2.11.tar.gz ]; then | 209 if [ ! -f $FLYS_SOURCE_DIR/OpenLayers-2.11.tar.gz ]; then |
204 echo "INFO: download OpenLayers-2.11 for client" | 210 echo "INFO: download OpenLayers-2.11 for client" |
205 cd $FLYS_SOURCE_DIR | 211 cd $FLYS_SOURCE_DIR |
206 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz | 212 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz |
262 cp -R $FLYS_SOURCE_DIR/flys/flys-artifacts/doc/conf $WORK_DIR/server/ | 268 cp -R $FLYS_SOURCE_DIR/flys/flys-artifacts/doc/conf $WORK_DIR/server/ |
263 | 269 |
264 sed -i "s/8181/$ARTIFACT_PORT/g" \ | 270 sed -i "s/8181/$ARTIFACT_PORT/g" \ |
265 $WORK_DIR/server/conf/rest-server.xml | 271 $WORK_DIR/server/conf/rest-server.xml |
266 | 272 |
267 sed -i -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ | 273 sed -i -e "s@http://example.com/@${MAPSERVER_URL}/@g" \ |
268 $WORK_DIR/server/conf/floodmap.xml | 274 $WORK_DIR/server/conf/floodmap.xml |
269 | 275 |
270 sed -i -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ | 276 sed -i -e "s@http://example.com/@${MAPSERVER_URL}/@g" \ |
271 $WORK_DIR/server/conf/rivermap.xml | 277 $WORK_DIR/server/conf/rivermap.xml |
272 | 278 |
273 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \ | 279 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \ |
274 $WORK_DIR/server/conf/mapserver/fontset.txt | 280 $WORK_DIR/server/conf/mapserver/fontset.txt |
275 | 281 |
282 sed "s@/tmp/flys-server-default.log@${LOG_DIR}/server-${VERSION}.log@" \ | 288 sed "s@/tmp/flys-server-default.log@${LOG_DIR}/server-${VERSION}.log@" \ |
283 $SCRIPT_DIR/confs/log4j.properties \ | 289 $SCRIPT_DIR/confs/log4j.properties \ |
284 > $WORK_DIR/server/conf/log4j.properties | 290 > $WORK_DIR/server/conf/log4j.properties |
285 | 291 |
286 sed -i -e "s@<dgm-path>/path/to/rivers/</dgm-path>@<dgm-path>${DGM_PATH}</dgm-path>@g" \ | 292 sed -i -e "s@<dgm-path>/path/to/rivers/</dgm-path>@<dgm-path>${DGM_PATH}</dgm-path>@g" \ |
293 -e "s@<help-url>http://example.com</help-url>@<help-url>${WIKI_URL}</help-url>@g" \ | |
287 $WORK_DIR/server/conf/conf.xml | 294 $WORK_DIR/server/conf/conf.xml |
288 | 295 |
289 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF | 296 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF |
290 <?xml version="1.0" encoding="UTF-8" ?> | 297 <?xml version="1.0" encoding="UTF-8" ?> |
291 <seddb-database> | 298 <seddb-database> |