浏览代码

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 年之前
父节点
当前提交
43ae5701e5
共有 1 个文件被更改,包括 18 次插入0 次删除
  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