[PATCH] Avoid having to set VERSION in external script

Wald Commits scm-commit at wald.intevation.org
Wed Jun 18 18:18:08 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1403108284 -7200
# Node ID 0fa7db25fd6733ecc8e61d336e4f2e4b778e852c
# Parent  36f634917104303d3978a5397d832c0730d4ce51
Avoid having to set VERSION in external script.

diff -r 36f634917104 -r 0fa7db25fd67 contrib/make_flys_release/make_release.sh
--- a/contrib/make_flys_release/make_release.sh	Wed Jun 18 16:34:08 2014 +0200
+++ b/contrib/make_flys_release/make_release.sh	Wed Jun 18 18:18:04 2014 +0200
@@ -65,7 +65,7 @@
 #   --seddb-pass                    Sediment db password. Default: $SEDDBPASS
 #   --seddb-back                    Sediment db backend. Default: $SEDDBBACK
 TOMCAT_PORT=${TOMCAT_PORT:-8282}
-MAPSERVER_URL=${MAPSERVER_URL:-http://flys-devel.intevation.de/cgi-bin/flys-${VERSION}}
+MAPSERVER_URL=${MAPSERVER_URL:-http://flys-devel.intevation.de/cgi-bin/flys}
 WIKI_URL=${WIKI_URL:-https://flys3-devel.bafg.de/wiki}
 # Prefix to FreeSans.ttf
 FONT_PATH=${FONT_PATH:-/opt/flys}
@@ -324,10 +324,10 @@
 sed -i "s/8181/$ARTIFACT_PORT/g" \
     $WORK_DIR/server/conf/rest-server.xml
 
-sed -i -e "s at http://yourhost:8081/cgi-bin@${MAPSERVER_URL}/@g" \
+sed -i -e "s at http://yourhost:8081/cgi-bin@${MAPSERVER_URL}-${VERSION}@g" \
     $WORK_DIR/server/conf/floodmap.xml
 
-sed -i -e "s at http://yourhost:8081/cgi-bin@${MAPSERVER_URL}/@g" \
+sed -i -e "s at http://yourhost:8081/cgi-bin@${MAPSERVER_URL}-${VERSION}@g" \
     $WORK_DIR/server/conf/rivermap.xml
 
 sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \


More information about the Dive4Elements-commits mailing list