changeset 5530:7f8d6b49afad

Make FONT_PATH configurable in release script.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 03 Apr 2013 10:56:57 +0200
parents 52876daf97b0
children ac48ab9e1715
files contrib/make_flys_release/README contrib/make_flys_release/make_release.sh
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/make_flys_release/README	Tue Apr 02 13:02:12 2013 +0200
+++ b/contrib/make_flys_release/README	Wed Apr 03 10:56:57 2013 +0200
@@ -7,6 +7,7 @@
 FLYS_SOURCE_DIR
 TOMCAT_PORT
 MAPSERVER_URL
+FONT_PATH
 WIKI_URL
 LOG_DIR
 DEVELOPER
--- a/contrib/make_flys_release/make_release.sh	Tue Apr 02 13:02:12 2013 +0200
+++ b/contrib/make_flys_release/make_release.sh	Wed Apr 03 10:56:57 2013 +0200
@@ -67,6 +67,8 @@
 TOMCAT_PORT=${TOMCAT_PORT:-8282}
 MAPSERVER_URL=${MAPSERVER_URL:-flys-devel.intevation.de}
 WIKI_URL=${WIKI_URL:-https://flys-intern.intevation.de/Flys-3.0}
+# Prefix to FreeSans.ttf
+FONT_PATH=${FONT_PATH:-/opt/flys}
 
 # Seddb Configuration
 SEDDBURL=${SEDDBURL:-czech-republic.atlas.intevation.de}
@@ -267,6 +269,9 @@
 sed -i -e "s@http://example.com/@http://${MAPSERVER_URL}/@g" \
     $WORK_DIR/server/conf/rivermap.xml
 
+sed -i -e "s@/usr/share/fonts/truetype/freefont@${FONT_PATH}@g" \
+    $WORK_DIR/server/conf/mapserver/fontset.txt
+
 sed -i -e "s@/tmp/flys-rivers-wms.log@${LOG_DIR}/rivers-wms-${VERSION}.log@g" \
     $WORK_DIR/server/conf/mapserver/river-mapfile.vm
 

http://dive4elements.wald.intevation.org