From ec5a3b42b87e304690e241bca38d56870851fd10 Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Mon, 26 Nov 2018 23:10:37 +0100 Subject: [PATCH] osgeo4w: fix grass plugin installation --- ms-windows/osgeo4w/postinstall-grass.bat | 8 ++++---- ms-windows/osgeo4w/preremove-grass.bat | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ms-windows/osgeo4w/postinstall-grass.bat b/ms-windows/osgeo4w/postinstall-grass.bat index a4e6b2800614..9216a05b1f43 100644 --- a/ms-windows/osgeo4w/postinstall-grass.bat +++ b/ms-windows/osgeo4w/postinstall-grass.bat @@ -2,12 +2,12 @@ textreplace -std -t bin\@package@-grass@grassmajor@.bat if "%OSGEO4W_DESKTOP%"=="" set OSGEO4W_DESKTOP=~$folder.common_desktop$ -copy bin\@package@-bin.exe bin\@package@-bin-g@grassversion@.exe -copy bin\@package@-bin.vars bin\@package@-bin-g@grassversion@.vars +copy bin\@package@-bin.exe bin\@package@-bin-g@grassmajor@.exe +copy bin\@package@-bin.vars bin\@package@-bin-g@grassmajor@.vars call "%OSGEO4W_ROOT%\bin\@package@-grass@grassmajor@.bat" --postinstall if not %OSGEO4W_MENU_LINKS%==0 mkdir "%OSGEO4W_STARTMENU%" if not %OSGEO4W_DESKTOP_LINKS%==0 mkdir "%OSGEO4W_DESKTOP%" -if not %OSGEO4W_MENU_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe" "%OSGEO4W_STARTMENU%" "QGIS Desktop @version@ with GRASS @grassversion@" -if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe" "%OSGEO4W_DESKTOP%" "QGIS Desktop @version@ with GRASS @grassversion@" +if not %OSGEO4W_MENU_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassmajor@.exe" "%OSGEO4W_STARTMENU%" "QGIS Desktop @version@ with GRASS @grassversion@" +if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassmajor@.exe" "%OSGEO4W_DESKTOP%" "QGIS Desktop @version@ with GRASS @grassversion@" diff --git a/ms-windows/osgeo4w/preremove-grass.bat b/ms-windows/osgeo4w/preremove-grass.bat index 1694aa97e5db..1b2c2abc33c4 100644 --- a/ms-windows/osgeo4w/preremove-grass.bat +++ b/ms-windows/osgeo4w/preremove-grass.bat @@ -5,6 +5,6 @@ del "%OSGEO4W_DESKTOP%\QGIS Desktop @version@ with GRASS @grassversion@.lnk" del "%OSGEO4W_DESKTOP%\QGIS Browser @version@ with GRASS @grassversion@.lnk" rmdir "%OSGEO4W_DESKTOP%" del "%OSGEO4W_ROOT%\bin\@package@-grass@grassmajor@.bat" -del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.exe" -del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.vars" -del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassversion@.env" +del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassmajor@.exe" +del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassmajor@.vars" +del "%OSGEO4W_ROOT%\bin\@package@-bin-g@grassmajor@.env"