[Dive4elements-commits] [PATCH] Patch WIKI urls during release building

Wald Commits scm-commit at wald.intevation.org
Wed Feb 27 17:13:00 CET 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1361981576 -3600
# Node ID 15ff9ddc765ef3ca7dc5da936d180d96f2db1e4a
# Parent  dc0cc18e7944855d210d6adaf5bebeb1e9a0f570
Patch WIKI urls during release building

diff -r dc0cc18e7944 -r 15ff9ddc765e contrib/make_flys_release/make_release.sh
--- a/contrib/make_flys_release/make_release.sh	Wed Feb 27 17:00:12 2013 +0100
+++ b/contrib/make_flys_release/make_release.sh	Wed Feb 27 17:12:56 2013 +0100
@@ -18,6 +18,7 @@
 TOMCAT_PORT=${TOMCAT_PORT:-8005}
 
 MAPSERVER_URL=${MAPSERVER_URL:-czech-republic.atlas.intevation.de}
+WIKI_URL=${WIKI_URL:-https://flys-intern.intevation.de/Flys-3.0}
 
 echo "INFO: create server directories"
 mkdir -p $DIRECTORY/server/bin/lib/own
@@ -48,9 +49,13 @@
        -e "s at http://localhost:8888 at http://localhost:$TOMCAT_PORT at g" \
     $FLYS_HG/flys-client/src/main/webapp/WEB-INF/web.xml
 
-sed -i -e "s@/tmp/flys-client.log@/tmp/flys-client-${RELEASE}.log at g" \
+sed -i -e "s@/tmp/flys-client.log@/var/log/flys/client-${RELEASE}.log at g" \
     $FLYS_HG/flys-client/src/main/webapp/WEB-INF/log4j.properties
 
+# Fix the Wiki URLs
+find $FLYS_HG/flys-artifacts/src/main/resources/ -name messages_\*.properties \
+    -exec sed -i "s at https://flys-intern.intevation.de/Flys-3.0@${WIKI_URL}@g" {} \;
+
 echo "INFO: download OpenLayers-2.11 for client"
 curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz
 tar xvfz OpenLayers-2.11.tar.gz
@@ -110,8 +115,7 @@
     confs/rivermap.xml \
     > $DIRECTORY/server/conf/rivermap.xml
 
-
-sed "s@/tmp/flys-server-default.log@/tmp/flys-server-${RELEASE}.log" \
+sed "s@/tmp/flys-server-default.log@/var/log/flys/server-${RELEASE}.log@" \
     confs/log4j.properties \
     > $DIRECTORY/server/conf/log4j.properties
 


More information about the Dive4elements-commits mailing list