[Dive4elements-commits] [PATCH 1 of 2] Be more aggressive when replacing the wiki url

Wald Commits scm-commit at wald.intevation.org
Fri Mar 15 19:28:58 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1363372115 -3600
# Node ID 53aee7e9ce539d02b3856b5f88f0caf7d17ad1bc
# Parent  807fa01b498bc592f247e7d97b8fc793ce9727b0
Be more aggressive when replacing the wiki url

diff -r 807fa01b498b -r 53aee7e9ce53 contrib/make_flys_release/make_release.sh
--- a/contrib/make_flys_release/make_release.sh	Fri Mar 15 19:00:49 2013 +0100
+++ b/contrib/make_flys_release/make_release.sh	Fri Mar 15 19:28:35 2013 +0100
@@ -185,8 +185,11 @@
 sed -i -e "s@/tmp/flys-client.log@${LOG_DIR}/client-${VERSION}.log at g" \
     $FLYS_SOURCE_DIR/flys/flys-client/src/main/webapp/WEB-INF/log4j.properties
 
-find $FLYS_SOURCE_DIR/flys/flys-artifacts/src/main/resources/ -name messages_\*.properties \
-    -exec sed -i "s at https://flys-intern.intevation.de/Flys-3.0@"'${WIKI_URL}'"@g" {} \;
+find $FLYS_SOURCE_DIR/flys/flys-artifacts/src/main/resources/ -name messages\*.properties | \
+    xargs sed -i "s at https://flys-intern.intevation.de/Flys-3.0@${WIKI_URL}@g";
+
+find $FLYS_SOURCE_DIR/flys/ -name \*.properties -o -name \*.xsl |  \
+    xargs sed -i "s at https://flys-intern.intevation.de@${WIKI_URL}@g";
 
 if [ ! -f $FLYS_SOURCE_DIR/OpenLayers-2.11.tar.gz ]; then
     echo "INFO: download OpenLayers-2.11 for client"
@@ -258,10 +261,10 @@
 sed -i -e "s at http://example.com/@http://${MAPSERVER_URL}/@g" \
     $WORK_DIR/server/conf/rivermap.xml
 
-sed -i -e "s@/tmp/flys-rivers-wms.log/@${LOG_DIR}/rivers-wms-${VERSION}.log at g" \
+sed -i -e "s@/tmp/flys-rivers-wms.log@${LOG_DIR}/rivers-wms-${VERSION}.log at g" \
     $WORK_DIR/server/conf/mapserver/river-mapfile.vm
 
-sed -i -e "s@/tmp/flys-user-wms.log/@${LOG_DIR}/user-wms-${VERSION}.log at g" \
+sed -i -e "s@/tmp/flys-user-wms.log@${LOG_DIR}/user-wms-${VERSION}.log at g" \
     $WORK_DIR/server/conf/mapserver/mapfile.vm
 
 sed "s@/tmp/flys-server-default.log@${LOG_DIR}/server-${VERSION}.log@" \


More information about the Dive4elements-commits mailing list