comparison contrib/make_flys_release/make_release.sh @ 7949:0fa7db25fd67

Avoid having to set VERSION in external script.
author Tom Gottfried <tom@intevation.de>
date Wed, 18 Jun 2014 18:18:04 +0200
parents 36f634917104
children 092678a10379
comparison
equal deleted inserted replaced
7948:36f634917104 7949:0fa7db25fd67
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:-http://flys-devel.intevation.de/cgi-bin/flys-${VERSION}} 68 MAPSERVER_URL=${MAPSERVER_URL:-http://flys-devel.intevation.de/cgi-bin/flys}
69 WIKI_URL=${WIKI_URL:-https://flys3-devel.bafg.de/wiki} 69 WIKI_URL=${WIKI_URL:-https://flys3-devel.bafg.de/wiki}
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
322 cp -R $FLYS_SOURCE_DIR/river/artifacts/doc/conf $WORK_DIR/server/ 322 cp -R $FLYS_SOURCE_DIR/river/artifacts/doc/conf $WORK_DIR/server/
323 323
324 sed -i "s/8181/$ARTIFACT_PORT/g" \ 324 sed -i "s/8181/$ARTIFACT_PORT/g" \
325 $WORK_DIR/server/conf/rest-server.xml 325 $WORK_DIR/server/conf/rest-server.xml
326 326
327 sed -i -e "s@http://yourhost:8081/cgi-bin@${MAPSERVER_URL}/@g" \ 327 sed -i -e "s@http://yourhost:8081/cgi-bin@${MAPSERVER_URL}-${VERSION}@g" \
328 $WORK_DIR/server/conf/floodmap.xml 328 $WORK_DIR/server/conf/floodmap.xml
329 329
330 sed -i -e "s@http://yourhost:8081/cgi-bin@${MAPSERVER_URL}/@g" \ 330 sed -i -e "s@http://yourhost:8081/cgi-bin@${MAPSERVER_URL}-${VERSION}@g" \
331 $WORK_DIR/server/conf/rivermap.xml 331 $WORK_DIR/server/conf/rivermap.xml
332 332
333 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \ 333 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \
334 $WORK_DIR/server/conf/mapserver/fontset.txt 334 $WORK_DIR/server/conf/mapserver/fontset.txt
335 335

http://dive4elements.wald.intevation.org