Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
5118:dc0cc18e7944 | 5119:15ff9ddc765e |
---|---|
16 | 16 |
17 ARTIFACT_PORT=${ARTIFACT_PORT:-9002} | 17 ARTIFACT_PORT=${ARTIFACT_PORT:-9002} |
18 TOMCAT_PORT=${TOMCAT_PORT:-8005} | 18 TOMCAT_PORT=${TOMCAT_PORT:-8005} |
19 | 19 |
20 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.atlas.intevation.de} | 20 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.atlas.intevation.de} |
21 WIKI_URL=${WIKI_URL:-https://flys-intern.intevation.de/Flys-3.0} | |
21 | 22 |
22 echo "INFO: create server directories" | 23 echo "INFO: create server directories" |
23 mkdir -p $DIRECTORY/server/bin/lib/own | 24 mkdir -p $DIRECTORY/server/bin/lib/own |
24 mkdir $DIRECTORY/server/shapefiles | 25 mkdir $DIRECTORY/server/shapefiles |
25 mkdir $DIRECTORY/client | 26 mkdir $DIRECTORY/client |
46 | 47 |
47 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \ | 48 sed -i -e "s@http://localhost:8181@http://localhost:$ARTIFACT_PORT@g" \ |
48 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ | 49 -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \ |
49 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml | 50 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml |
50 | 51 |
51 sed -i -e "s@/tmp/flys-client.log@/tmp/flys-client-${RELEASE}.log@g" \ | 52 sed -i -e "s@/tmp/flys-client.log@/var/log/flys/client-${RELEASE}.log@g" \ |
52 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/log4j.properties | 53 $FLYS_HG/flys-client/src/main/webapp/WEB-INF/log4j.properties |
54 | |
55 # Fix the Wiki URLs | |
56 find $FLYS_HG/flys-artifacts/src/main/resources/ -name messages_\*.properties \ | |
57 -exec sed -i "s@https://flys-intern.intevation.de/Flys-3.0@${WIKI_URL}@g" {} \; | |
53 | 58 |
54 echo "INFO: download OpenLayers-2.11 for client" | 59 echo "INFO: download OpenLayers-2.11 for client" |
55 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz | 60 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz |
56 tar xvfz OpenLayers-2.11.tar.gz | 61 tar xvfz OpenLayers-2.11.tar.gz |
57 # TODO: Remove more superfluous OpenLayers stuff. | 62 # TODO: Remove more superfluous OpenLayers stuff. |
108 | 113 |
109 sed -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ | 114 sed -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \ |
110 confs/rivermap.xml \ | 115 confs/rivermap.xml \ |
111 > $DIRECTORY/server/conf/rivermap.xml | 116 > $DIRECTORY/server/conf/rivermap.xml |
112 | 117 |
113 | 118 sed "s@/tmp/flys-server-default.log@/var/log/flys/server-${RELEASE}.log@" \ |
114 sed "s@/tmp/flys-server-default.log@/tmp/flys-server-${RELEASE}.log" \ | |
115 confs/log4j.properties \ | 119 confs/log4j.properties \ |
116 > $DIRECTORY/server/conf/log4j.properties | 120 > $DIRECTORY/server/conf/log4j.properties |
117 | 121 |
118 # TODO: Use templating here | 122 # TODO: Use templating here |
119 cp confs/seddb-db.xml $DIRECTORY/server/conf/seddb-db.xml | 123 cp confs/seddb-db.xml $DIRECTORY/server/conf/seddb-db.xml |