[Dive4elements-commits] [PATCH] Make FONT_PATH configurable in release script
Wald Commits
scm-commit at wald.intevation.org
Wed Apr 3 10:57:02 CEST 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1364979417 -7200
# Node ID 7f8d6b49afadea5f6aaf81882b84c9675fdb02af
# Parent 52876daf97b0c2a3c2804cfdd8b7805f3eaab014
Make FONT_PATH configurable in release script.
diff -r 52876daf97b0 -r 7f8d6b49afad contrib/make_flys_release/README
--- 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
diff -r 52876daf97b0 -r 7f8d6b49afad contrib/make_flys_release/make_release.sh
--- 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 at 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 at g" \
$WORK_DIR/server/conf/mapserver/river-mapfile.vm
More information about the Dive4elements-commits
mailing list