[GRASS-SVN] r66691 - grass/trunk/mswindows/osgeo4w

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 31 15:59:11 PDT 2015


Author: hellik
Date: 2015-10-31 15:59:11 -0700 (Sat, 31 Oct 2015)
New Revision: 66691

Modified:
   grass/trunk/mswindows/osgeo4w/postinstall.bat
Log:
postinstall.bat: update paths to fonts during an OSGeo4W-winGRASS installation; attempt to fix #2784

Modified: grass/trunk/mswindows/osgeo4w/postinstall.bat
===================================================================
--- grass/trunk/mswindows/osgeo4w/postinstall.bat	2015-10-31 16:35:32 UTC (rev 66690)
+++ grass/trunk/mswindows/osgeo4w/postinstall.bat	2015-10-31 22:59:11 UTC (rev 66691)
@@ -11,5 +11,23 @@
 
 xxmklink "%ALLUSERSPROFILE%\Desktop\GRASS GIS @VERSION at .lnk" "%BATCH%"  "-gui" \ "Launch GRASS GIS @VERSION@ with wxGUI" 1 "%ICON%" 
 
+rem run g.mkfontcap outside a grass session during  
+rem an OSGeo4W installation for updating paths to fonts
+
+rem set gisbase
+set GISBASE=%OSGEO4W_ROOT%apps\grass\grass- at VERSION@\
+
+rem set path to freetype dll and its dependecies
+set FREETYPEBASE=%OSGEO4W_ROOT%bin;%OSGEO4W_ROOT%apps\msys\bin;%GISBASE%lib
+
+rem set dependecies to path
+set PATH=%FREETYPEBASE%;%PATH%
+
+rem GISRC must be set
+set GISRC=dummy
+
+rem run g.mkfontcap outside a grass session
+"%GISBASE%\bin\g.mkfontcap.exe" -o
+
 del "%OSGEO4W_ROOT%"\bin\@GRASS_EXECUTABLE at .bat.tmpl
 del "%OSGEO4W_ROOT%"\bin\@GRASS_EXECUTABLE at .tmpl



More information about the grass-commit mailing list