Mercurial > dive4elements > river
comparison contrib/make_flys_release/make_release.sh @ 4487:a08d25476f0a
Fixed web.xml seding
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 10:38:33 +0100 |
parents | b51f6bb188d7 |
children | 302f5da348bb |
comparison
equal
deleted
inserted
replaced
4486:78227746fe3a | 4487:a08d25476f0a |
---|---|
12 PREFIX="flys-" | 12 PREFIX="flys-" |
13 RELEASE=${RELEASE:-default} | 13 RELEASE=${RELEASE:-default} |
14 RELEASE_DATE=`date +'%Y-%m-%d'` | 14 RELEASE_DATE=`date +'%Y-%m-%d'` |
15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE | 15 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE |
16 | 16 |
17 ARTEFACT_PORT=9002 | 17 ARTEFACT_PORT=${ARTEFACT_PORT:-9002} |
18 TOMCAT_PORT=8005 | 18 TOMCAT_PORT=${TOMCAT_PORT:-8005} |
19 | 19 |
20 echo "INFO: create server directories" | 20 echo "INFO: create server directories" |
21 mkdir -p $DIRECTORY/server/bin/lib/own | 21 mkdir -p $DIRECTORY/server/bin/lib/own |
22 mkdir $DIRECTORY/server/shapefiles | 22 mkdir $DIRECTORY/server/shapefiles |
23 mkdir $DIRECTORY/client | 23 mkdir $DIRECTORY/client |
41 | 41 |
42 # adapt client configuration | 42 # adapt client configuration |
43 echo "INFO: prepare configuration of web client" | 43 echo "INFO: prepare configuration of web client" |
44 | 44 |
45 sed -i -e "s@http://localhost:8181@http://localhost:$ARTEFACT_PORT@g " \ | 45 sed -i -e "s@http://localhost:8181@http://localhost:$ARTEFACT_PORT@g " \ |
46 -e "a@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ | 46 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ |
47 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml | 47 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml |
48 | 48 |
49 echo "INFO: download OpenLayers-2.11 for client" | 49 echo "INFO: download OpenLayers-2.11 for client" |
50 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz | 50 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz |
51 tar xvfz OpenLayers-2.11.tar.gz | 51 tar xvfz OpenLayers-2.11.tar.gz |