123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- 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%\Python39
- xcopy %OSGEO4W_PKG_DIR%\apps\Python39\* %PACKAGE_DIR%\Python39 /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.
|