forked from OSGeo/grass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
150 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
set grass=%1 | ||
|
||
rem Test execution of binary command | ||
call %grass% --tmp-project EPSG:4326 --exec g.region res=0.1 -p | ||
rem Test if batch-wrapper-scripts without extension are found | ||
call %grass% --tmp-project EPSG:4326 --exec C:/Windows/System32/where.exe t.create | ||
rem Test if python-scripts can be called | ||
call %grass% --tmp-project EPSG:4326 --exec t.create --help | ||
set grass=%1 | ||
|
||
rem Test execution of binary command | ||
call %grass% --tmp-project EPSG:4326 --exec g.region res=0.1 -p | ||
rem Test if batch-wrapper-scripts without extension are found | ||
call %grass% --tmp-project EPSG:4326 --exec C:/Windows/System32/where.exe t.create | ||
rem Test if python-scripts can be called | ||
call %grass% --tmp-project EPSG:4326 --exec t.create --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
set grass=%1 | ||
set python=%2 | ||
|
||
call %grass% --tmp-project XY --exec g.download.project url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=%USERPROFILE% | ||
call %grass% --tmp-project XY --exec %python% -m grass.gunittest.main --grassdata %USERPROFILE% --location nc_spm_full_v2alpha2 --location-type nc --min-success 96 --config .github\workflows\osgeo4w_gunittest.cfg | ||
set grass=%1 | ||
set python=%2 | ||
|
||
call %grass% --tmp-project XY --exec g.download.project url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=%USERPROFILE% | ||
call %grass% --tmp-project XY --exec %python% -m grass.gunittest.main --grassdata %USERPROFILE% --location nc_spm_full_v2alpha2 --location-type nc --min-success 96 --config .github\workflows\osgeo4w_gunittest.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,108 @@ | ||
rem ----------------------------------------------------------------------------------------------------------------------- | ||
rem Self Contained GRASS Automated Packager | ||
rem ----------------------------------------------------------------------------------------------------------------------- | ||
rem Edited by: Marco Pasetti | ||
rem Revised for OSGeo4W by: Colin Nielsen, Helmut Kudrnovsky, and Martin Landa | ||
rem Last Update: $Id$ | ||
rem ----------------------------------------------------------------------------------------------------------------------- | ||
|
||
@echo off | ||
|
||
rem -------------------------------------------------------------------------------------------------------------------------- | ||
rem Set the script variables | ||
rem -------------------------------------------------------------------------------------------------------------------------- | ||
|
||
set PACKAGE_DIR=.\GRASS-@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@-Package | ||
|
||
set OSGEO4W_BLD_DIR=C:\OSGeo4W | ||
if exist C:\OSGeo4W_grass@GRASS_VERSION_MAJOR@ ( | ||
set OSGEO4W_PKG_DIR=C:\OSGeo4W_grass@GRASS_VERSION_MAJOR@ | ||
) else ( | ||
set OSGEO4W_PKG_DIR=C:\OSGeo4W | ||
) | ||
|
||
set MSYS_BLD_DIR=C:\msys64\mingw64 | ||
|
||
set GRASS_PREFIX=%OSGEO4W_BLD_DIR%\apps\grass\grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@ | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Remove the previous package and create a new PACKAGE_DIR | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
|
||
if exist %PACKAGE_DIR% rmdir /S/Q %PACKAGE_DIR% | ||
mkdir %PACKAGE_DIR% | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy %GRASS_PREFIX% content to PACKAGE_DIR | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
|
||
xcopy %GRASS_PREFIX% %PACKAGE_DIR% /S/V/F/I | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy extrabins to PACKAGE_DIR\extrabin | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
|
||
mkdir %PACKAGE_DIR%\extrabin | ||
mkdir %PACKAGE_DIR%\extrabin\gdalplugins | ||
|
||
copy %OSGEO4W_PKG_DIR%\bin\* %PACKAGE_DIR%\extrabin | ||
xcopy %OSGEO4W_PKG_DIR%\bin\gdalplugins\* %PACKAGE_DIR%\extrabin\gdalplugins /S/V/F/I | ||
rem msvcrt2019 | ||
del %PACKAGE_DIR%\extrabin\*140*.dll | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy 'Windows batchfiles for use with R' (GRASS-R-integration) from source to PACKAGE_DIR\extrabin | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
|
||
copy .\external\rbatch\* %PACKAGE_DIR%\extrabin | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy shared PROJ.4 files to PACKAGE_DIR\proj | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
|
||
if not exist "%PACKAGE_DIR%\share" mkdir %PACKAGE_DIR%\share | ||
mkdir %PACKAGE_DIR%\share\proj | ||
xcopy %OSGEO4W_PKG_DIR%\share\proj %PACKAGE_DIR%\share\proj /S/V/F/I | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy shared GDAL files to PACKAGE_DIR\share\gdal | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
|
||
mkdir %PACKAGE_DIR%\share\gdal | ||
xcopy %OSGEO4W_PKG_DIR%\share\gdal %PACKAGE_DIR%\share\gdal /S/V/F/I | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy Python content to PACKAGE_DIR\Python3 | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
|
||
mkdir %PACKAGE_DIR%\Python312 | ||
|
||
xcopy %OSGEO4W_PKG_DIR%\apps\Python312\* %PACKAGE_DIR%\Python312 /S/V/F/I | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy env.bat | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
|
||
copy env.bat %PACKAGE_DIR%\etc | ||
|
||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Packaging Completed | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
rem ----------------------------------------------------------------------------------------------------------------------- | ||
rem Self Contained GRASS Automated Packager | ||
rem ----------------------------------------------------------------------------------------------------------------------- | ||
rem Edited by: Marco Pasetti | ||
rem Revised for OSGeo4W by: Colin Nielsen, Helmut Kudrnovsky, and Martin Landa | ||
rem Last Update: $Id$ | ||
rem ----------------------------------------------------------------------------------------------------------------------- | ||
@echo off | ||
rem -------------------------------------------------------------------------------------------------------------------------- | ||
rem Set the script variables | ||
rem -------------------------------------------------------------------------------------------------------------------------- | ||
set PACKAGE_DIR=.\GRASS-@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@-Package | ||
set OSGEO4W_BLD_DIR=C:\OSGeo4W | ||
if exist C:\OSGeo4W_grass@GRASS_VERSION_MAJOR@ ( | ||
set OSGEO4W_PKG_DIR=C:\OSGeo4W_grass@GRASS_VERSION_MAJOR@ | ||
) else ( | ||
set OSGEO4W_PKG_DIR=C:\OSGeo4W | ||
) | ||
set MSYS_BLD_DIR=C:\msys64\mingw64 | ||
set GRASS_PREFIX=%OSGEO4W_BLD_DIR%\apps\grass\grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@ | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Remove the previous package and create a new PACKAGE_DIR | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
if exist %PACKAGE_DIR% rmdir /S/Q %PACKAGE_DIR% | ||
mkdir %PACKAGE_DIR% | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy %GRASS_PREFIX% content to PACKAGE_DIR | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
xcopy %GRASS_PREFIX% %PACKAGE_DIR% /S/V/F/I | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy extrabins to PACKAGE_DIR\extrabin | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
mkdir %PACKAGE_DIR%\extrabin | ||
mkdir %PACKAGE_DIR%\extrabin\gdalplugins | ||
copy %OSGEO4W_PKG_DIR%\bin\* %PACKAGE_DIR%\extrabin | ||
xcopy %OSGEO4W_PKG_DIR%\bin\gdalplugins\* %PACKAGE_DIR%\extrabin\gdalplugins /S/V/F/I | ||
rem msvcrt2019 | ||
del %PACKAGE_DIR%\extrabin\*140*.dll | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy 'Windows batchfiles for use with R' (GRASS-R-integration) from source to PACKAGE_DIR\extrabin | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
copy .\external\rbatch\* %PACKAGE_DIR%\extrabin | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy shared PROJ.4 files to PACKAGE_DIR\proj | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
if not exist "%PACKAGE_DIR%\share" mkdir %PACKAGE_DIR%\share | ||
mkdir %PACKAGE_DIR%\share\proj | ||
xcopy %OSGEO4W_PKG_DIR%\share\proj %PACKAGE_DIR%\share\proj /S/V/F/I | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy shared GDAL files to PACKAGE_DIR\share\gdal | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
mkdir %PACKAGE_DIR%\share\gdal | ||
xcopy %OSGEO4W_PKG_DIR%\share\gdal %PACKAGE_DIR%\share\gdal /S/V/F/I | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy Python content to PACKAGE_DIR\Python3 | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
mkdir %PACKAGE_DIR%\Python312 | ||
xcopy %OSGEO4W_PKG_DIR%\apps\Python312\* %PACKAGE_DIR%\Python312 /S/V/F/I | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Copy env.bat | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. | ||
copy env.bat %PACKAGE_DIR%\etc | ||
@echo. | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo Packaging Completed | ||
@echo ----------------------------------------------------------------------------------------------------------------------- | ||
@echo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
set ICON=%OSGEO4W_ROOT%\apps\grass\grass@POSTFIX@\gui\icons\grass_osgeo.ico | ||
set BATCH=%OSGEO4W_ROOT%\bin\@[email protected] | ||
textreplace -std -t "%BATCH%" | ||
textreplace -std -t "%OSGEO4W_ROOT%\apps\grass\grass@POSTFIX@\etc\fontcap" | ||
|
||
for /F "tokens=* USEBACKQ" %%F IN (`getspecialfolder Documents`) do set DOCUMENTS=%%F | ||
|
||
if not %OSGEO4W_MENU_LINKS%==0 xxmklink "%OSGEO4W_STARTMENU%\GRASS GIS @[email protected]" "%BATCH%" "--gui" "%DOCUMENTS%" "Launch GRASS GIS @VERSION@" 1 "%ICON%" | ||
if not %OSGEO4W_DESKTOP_LINKS%==0 xxmklink "%OSGEO4W_DESKTOP%\GRASS GIS @[email protected]" "%BATCH%" "--gui" "%DOCUMENTS%" "Launch GRASS GIS @VERSION@" 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@POSTFIX@ | ||
|
||
rem set path to freetype dll and its dependencies | ||
set FREETYPEBASE=%OSGEO4W_ROOT%\bin;%OSGEO4W_ROOT%\apps\msys\bin;%GISBASE%\lib | ||
|
||
rem set dependencies 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" --overwrite | ||
|
||
del "%BATCH%.tmpl | ||
set ICON=%OSGEO4W_ROOT%\apps\grass\grass@POSTFIX@\gui\icons\grass_osgeo.ico | ||
set BATCH=%OSGEO4W_ROOT%\bin\@[email protected] | ||
textreplace -std -t "%BATCH%" | ||
textreplace -std -t "%OSGEO4W_ROOT%\apps\grass\grass@POSTFIX@\etc\fontcap" | ||
|
||
for /F "tokens=* USEBACKQ" %%F IN (`getspecialfolder Documents`) do set DOCUMENTS=%%F | ||
|
||
if not %OSGEO4W_MENU_LINKS%==0 xxmklink "%OSGEO4W_STARTMENU%\GRASS GIS @[email protected]" "%BATCH%" "--gui" "%DOCUMENTS%" "Launch GRASS GIS @VERSION@" 1 "%ICON%" | ||
if not %OSGEO4W_DESKTOP_LINKS%==0 xxmklink "%OSGEO4W_DESKTOP%\GRASS GIS @[email protected]" "%BATCH%" "--gui" "%DOCUMENTS%" "Launch GRASS GIS @VERSION@" 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@POSTFIX@ | ||
|
||
rem set path to freetype dll and its dependencies | ||
set FREETYPEBASE=%OSGEO4W_ROOT%\bin;%OSGEO4W_ROOT%\apps\msys\bin;%GISBASE%\lib | ||
|
||
rem set dependencies 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" --overwrite | ||
|
||
del "%BATCH%.tmpl |