comparison contrib/make_flys_release/make_release.sh @ 5705:00851caf6979

Replace example.com in conf.xml
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 15 Apr 2013 12:47:15 +0200
parents d2c6d4ca6841
children 369e3201470d
comparison
equal deleted inserted replaced
5704:c13cbdd010ed 5705:00851caf6979
197 $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
198 198
199 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" \
200 $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
201 201
202 find $FLYS_SOURCE_DIR/flys/flys-artifacts/src/main/resources/ -name messages\*.properties | \ 202 # XXX: Are they really used at runtime?
203 xargs sed -i "s@https://flys-intern.intevation.de/Flys-3.0@${WIKI_URL}@g";
204
205 find $FLYS_SOURCE_DIR/flys/ -name \*.properties -o -name \*.xsl | \ 203 find $FLYS_SOURCE_DIR/flys/ -name \*.properties -o -name \*.xsl | \
206 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";
207 205
208 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \ 206 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \
209 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/config.yaml 207 $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/config.yaml
290 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@" \
291 $SCRIPT_DIR/confs/log4j.properties \ 289 $SCRIPT_DIR/confs/log4j.properties \
292 > $WORK_DIR/server/conf/log4j.properties 290 > $WORK_DIR/server/conf/log4j.properties
293 291
294 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" \
295 $WORK_DIR/server/conf/conf.xml 294 $WORK_DIR/server/conf/conf.xml
296 295
297 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF 296 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF
298 <?xml version="1.0" encoding="UTF-8" ?> 297 <?xml version="1.0" encoding="UTF-8" ?>
299 <seddb-database> 298 <seddb-database>

http://dive4elements.wald.intevation.org