Browse Source

postinstall.bat: update paths to fonts during an OSGeo4W-winGRASS installation; attempt to fix https://trac.osgeo.org/grass/ticket/2784

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66691 15284696-431f-4ddb-bdfa-cd5b030d7da7
Helmut Kudrnovsky 9 years ago
parent
commit
43ae5701e5
1 changed files with 18 additions and 0 deletions
  1. 18 0
      mswindows/osgeo4w/postinstall.bat

+ 18 - 0
mswindows/osgeo4w/postinstall.bat

@@ -11,5 +11,23 @@ xxmklink "%OSGEO4W_STARTMENU%\GRASS GIS @VERSION@\GRASS @VERSION@ Command Line.l
 
 xxmklink "%ALLUSERSPROFILE%\Desktop\GRASS GIS @VERSION@.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-@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@.bat.tmpl
 del "%OSGEO4W_ROOT%"\bin\@GRASS_EXECUTABLE@.tmpl