source: grass/trunk/mswindows/osgeo4w/postinstall.bat

Last change on this file was 74027, checked in by martinl, 6 years ago

wingrass: change instalation target, see #3732

  • Property svn:eol-style set to CRLF
  • Property svn:mime-type set to text/x-bat
File size: 1015 bytes
Line 
1set ICON=%OSGEO4W_ROOT%\apps\grass\grass@POSTFIX@\gui\icons\grass_osgeo.ico
2set BATCH=%OSGEO4W_ROOT%\bin\@GRASS_EXECUTABLE@.bat
3textreplace -std -t "%BATCH%"
4textreplace -std -t "%OSGEO4W_ROOT%"\apps\grass\grass-@POSTFIX@\etc\fontcap
5
6xxmklink "%OSGEO4W_STARTMENU%\GRASS GIS @VERSION@.lnk" "%BATCH%" "--gui" \ "Launch GRASS GIS @VERSION@" 1 "%ICON%"
7xxmklink "%ALLUSERSPROFILE%\Desktop\GRASS GIS @VERSION@.lnk" "%BATCH%" "--gui" \ "Launch GRASS GIS @VERSION@" 1 "%ICON%"
8
9rem run g.mkfontcap outside a GRASS session during
10rem an OSGeo4W installation for updating paths to fonts
11
12rem set gisbase
13set GISBASE=%OSGEO4W_ROOT%\apps\grass\grass@POSTFIX@
14
15rem set path to freetype dll and its dependencies
16set FREETYPEBASE=%OSGEO4W_ROOT%\bin;%OSGEO4W_ROOT%\apps\msys\bin;%GISBASE%\lib
17
18rem set dependencies to path
19set PATH=%FREETYPEBASE%;%PATH%
20
21rem GISRC must be set
22set GISRC=dummy
23
24rem run g.mkfontcap outside a GRASS session
25"%GISBASE%\bin\g.mkfontcap.exe" -o
26
27del "%BATCH%.tmpl
Note: See TracBrowser for help on using the repository browser.