diff 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
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh	Tue Nov 13 19:09:50 2012 +0100
+++ b/contrib/make_flys_release/make_release.sh	Wed Nov 14 10:38:33 2012 +0100
@@ -14,8 +14,8 @@
 RELEASE_DATE=`date +'%Y-%m-%d'`
 DIRECTORY=$PREFIX$RELEASE-$RELEASE_DATE
 
-ARTEFACT_PORT=9002
-TOMCAT_PORT=8005
+ARTEFACT_PORT=${ARTEFACT_PORT:-9002}
+TOMCAT_PORT=${TOMCAT_PORT:-8005}
 
 echo "INFO: create server directories"
 mkdir -p $DIRECTORY/server/bin/lib/own
@@ -43,7 +43,7 @@
 echo "INFO: prepare configuration of web client"
 
 sed -i -e "s@http://localhost:8181@http://localhost:$ARTEFACT_PORT@g " \
-       -e "a@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \
+       -e "s@http://localhost:8888@http://localhost:$TOMCAT_PORT@g" \
     $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml
 
 echo "INFO: download OpenLayers-2.11 for client"

http://dive4elements.wald.intevation.org