[GRASS-SVN] r57344 - grass/trunk/mswindows
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 1 09:15:31 PDT 2013
Author: martinl
Date: 2013-08-01 09:15:31 -0700 (Thu, 01 Aug 2013)
New Revision: 57344
Modified:
grass/trunk/mswindows/GRASS-Installer.nsi.tmpl
grass/trunk/mswindows/GRASS-Packager.bat.tmpl
grass/trunk/mswindows/env.bat
Log:
wingrass: major clean up of standalone installer
Modified: grass/trunk/mswindows/GRASS-Installer.nsi.tmpl
===================================================================
--- grass/trunk/mswindows/GRASS-Installer.nsi.tmpl 2013-08-01 16:02:57 UTC (rev 57343)
+++ grass/trunk/mswindows/GRASS-Installer.nsi.tmpl 2013-08-01 16:15:31 UTC (rev 57344)
@@ -832,17 +832,13 @@
FileWrite $0 'fi$\r$\n'
FileWrite $0 '$\r$\n'
FileWrite $0 '# Set the GRASS_PROJSHARE variable$\r$\n'
- FileWrite $0 'GRASS_PROJSHARE="$INSTALL_DIR\proj"$\r$\n'
+ FileWrite $0 'GRASS_PROJSHARE="$INSTALL_DIR\share\proj"$\r$\n'
FileWrite $0 'export GRASS_PROJSHARE$\r$\n'
FileWrite $0 '$\r$\n'
FileWrite $0 '# Set the GDAL_DATA variable$\r$\n'
FileWrite $0 'GDAL_DATA="$INSTALL_DIR\share\gdal"$\r$\n'
FileWrite $0 'export GDAL_DATA$\r$\n'
FileWrite $0 '$\r$\n'
- FileWrite $0 '# Set the PROJ_LIB variable$\r$\n'
- FileWrite $0 'PROJ_LIB="$INSTALL_DIR\proj"$\r$\n'
- FileWrite $0 'export PROJ_LIB $\r$\n'
- FileWrite $0 '$\r$\n'
FileWrite $0 '# Set the GEOTIFF_CSV variable$\r$\n'
FileWrite $0 'GEOTIFF_CSV="$INSTALL_DIR\share\epsg_csv"$\r$\n'
FileWrite $0 'export GEOTIFF_CSV$\r$\n'
@@ -894,7 +890,7 @@
;replace config_projshare
Push "$INSTDIR\etc\grass at GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR at .py" ; file to modify
Push 'config_projshare = "/c/OSGeo4W at OSGEO4W_DIR_POSTFIX@/share/proj"' ; string that a line must begin with *WS Sensitive*
- Push 'config_projshare = "$INSTDIR\proj"' ; string to replace whole line with
+ Push 'config_projshare = "$INSTDIR\share\proj"' ; string to replace whole line with
Call ReplaceLineStr
SectionEnd
Modified: grass/trunk/mswindows/GRASS-Packager.bat.tmpl
===================================================================
--- grass/trunk/mswindows/GRASS-Packager.bat.tmpl 2013-08-01 16:02:57 UTC (rev 57343)
+++ grass/trunk/mswindows/GRASS-Packager.bat.tmpl 2013-08-01 16:15:31 UTC (rev 57344)
@@ -1,7 +1,7 @@
rem -----------------------------------------------------------------------------------------------------------------------
rem Self Contained GRASS Automated Packager
rem -----------------------------------------------------------------------------------------------------------------------
-rem Original author: Marco Pasetti
+rem Edited by: Marco Pasetti
rem Revised for OSGeo4W by: Colin Nielsen, Helmut Kudrnovsky, and Martin Landa
rem Last Update: $Id$
rem -----------------------------------------------------------------------------------------------------------------------
@@ -14,14 +14,18 @@
set PACKAGE_DIR=.\GRASS- at GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR at -Package
-set OSGEO4W_DIR=c:\OSGeo4W at OSGEO4W_DIR_POSTFIX@
+set OSGEO4W_BLD_DIR=C:\OSGeo4W
+if exist C:\OSGeo4W_grass at GRASS_VERSION_MAJOR@ (
+set OSGEO4W_PKG_DIR=C:\OSGeo4W_grass at GRASS_VERSION_MAJOR@
+) else (
+set OSGEO4W_PKG_DIR=C:\OSGeo4W
+)
-set GRASS_PREFIX=%OSGEO4W_DIR%\apps\grass\grass- at GRASS_VERSION_MAJOR@. at GRASS_VERSION_MINOR@. at GRASS_VERSION_RELEASE@
-set GRASS_BIN_PREFIX=%OSGEO4W_DIR%\bin
+set GRASS_PREFIX=%OSGEO4W_BLD_DIR%\apps\grass\grass- at GRASS_VERSION_MAJOR@. at GRASS_VERSION_MINOR@. at GRASS_VERSION_RELEASE@
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
- at echo Remove the previous Selected Package and create a new PACKAGE_DIR
+ at echo Remove the previous package and create a new PACKAGE_DIR
@echo -----------------------------------------------------------------------------------------------------------------------
@echo.
@@ -34,41 +38,32 @@
@echo -----------------------------------------------------------------------------------------------------------------------
@echo.
-xcopy %GRASS_PREFIX% %PACKAGE_DIR% /S/V/F
+xcopy %GRASS_PREFIX% %PACKAGE_DIR% /S/V/F/I
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
- at echo Copy Extralibs to PACKAGE_DIR\extralib
+ at echo Copy DLL libs to PACKAGE_DIR\extralib
@echo -----------------------------------------------------------------------------------------------------------------------
@echo.
mkdir %PACKAGE_DIR%\extralib
-copy %OSGEO4W_DIR%\bin\*.dll %PACKAGE_DIR%\extralib
-del %PACKAGE_DIR%\extralib\libgrass_*6.4*.dll
-del %PACKAGE_DIR%\extralib\libgrass_*6.5*.dll
-del %PACKAGE_DIR%\extralib\Qt*4.dll
+copy %OSGEO4W_PKG_DIR%\bin\*.dll %PACKAGE_DIR%\extralib
del %PACKAGE_DIR%\extralib\msvcp*
del %PACKAGE_DIR%\extralib\msvcr*
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
- at echo Move GRASS libs from extralib to lib
+ at echo Copy extrabins to PACKAGE_DIR\extrabin
@echo -----------------------------------------------------------------------------------------------------------------------
@echo.
-move %PACKAGE_DIR%\extralib\libgrass_*.dll %PACKAGE_DIR%\lib
-
- at echo.
- at echo -----------------------------------------------------------------------------------------------------------------------
- at echo Copy Extrabins to PACKAGE_DIR\extrabin
- at echo -----------------------------------------------------------------------------------------------------------------------
- at echo.
-
mkdir %PACKAGE_DIR%\extrabin
mkdir %PACKAGE_DIR%\extrabin\gdalplugins
-copy %OSGEO4W_DIR%\bin\*.exe %PACKAGE_DIR%\extrabin
+copy %OSGEO4W_PKG_DIR%\bin\*.exe %PACKAGE_DIR%\extrabin
+xcopy %OSGEO4W_PKG_DIR%\bin\gdalplugins\* %PACKAGE_DIR%\extrabin\gdalplugins /S/V/F/I
+del %PACKAGE_DIR%\extrabin\apt*.exe
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
@@ -76,7 +71,7 @@
@echo -----------------------------------------------------------------------------------------------------------------------
@echo.
-copy %OSGEO4W_DIR%\usr\src\grass_trunk\mswindows\external\rbatch\* %PACKAGE_DIR%\extrabin
+copy %OSGEO4W_PKG_DIR%\usr\src\grass_trunk\mswindows\external\rbatch\* %PACKAGE_DIR%\extrabin
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
@@ -84,7 +79,9 @@
@echo -----------------------------------------------------------------------------------------------------------------------
@echo.
-xcopy %OSGEO4W_DIR%\share\proj %PACKAGE_DIR%\proj /S/V/F/I
+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 -----------------------------------------------------------------------------------------------------------------------
@@ -92,9 +89,8 @@
@echo -----------------------------------------------------------------------------------------------------------------------
@echo.
-mkdir %PACKAGE_DIR%\share
mkdir %PACKAGE_DIR%\share\gdal
-xcopy %OSGEO4W_DIR%\share\gdal %PACKAGE_DIR%\share\gdal /S/V/F/I
+xcopy %OSGEO4W_PKG_DIR%\share\gdal %PACKAGE_DIR%\share\gdal /S/V/F/I
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
@@ -103,7 +99,7 @@
@echo.
mkdir %PACKAGE_DIR%\share\epsg_csv
-xcopy %OSGEO4W_DIR%\share\epsg_csv %PACKAGE_DIR%\share\epsg_csv /S/V/F/I
+xcopy %OSGEO4W_PKG_DIR%\share\epsg_csv %PACKAGE_DIR%\share\epsg_csv /S/V/F/I
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
@@ -113,17 +109,14 @@
mkdir %PACKAGE_DIR%\msys
-copy %OSGEO4W_DIR%\apps\msys\* %PACKAGE_DIR%\msys
+xcopy %OSGEO4W_PKG_DIR%\apps\msys\* %PACKAGE_DIR%\msys /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\msys\bin %PACKAGE_DIR%\msys\bin /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\msys\doc %PACKAGE_DIR%\msys\doc /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\msys\etc %PACKAGE_DIR%\msys\etc /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\msys\info %PACKAGE_DIR%\msys\info /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\msys\lib %PACKAGE_DIR%\msys\lib /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\msys\man %PACKAGE_DIR%\msys\man /S/V/F/I
+rem delete msys.bat and fstab from osgeo4w because there is an
+rem adaption (for spaces in installation path) written by
+rem GRASS-Installer.nsi
+
+del %PACKAGE_DIR%\msys\msys.bat
del %PACKAGE_DIR%\msys\etc\fstab
-rem delete msys.bat from osgeo4w because there is an adaption (for spaces in installation path) written by GRASS-Installer.nsi
-del %PACKAGE_DIR%\msys\msys.bat
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
@@ -133,14 +126,25 @@
mkdir %PACKAGE_DIR%\Python27
-copy %OSGEO4W_DIR%\apps\Python27\* %PACKAGE_DIR%\Python27
+xcopy %OSGEO4W_PKG_DIR%\apps\Python27\* %PACKAGE_DIR%\Python27 /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\Python27\DLLs %PACKAGE_DIR%\Python27\DLLs /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\Python27\include %PACKAGE_DIR%\Python27\include /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\Python27\Lib %PACKAGE_DIR%\Python27\Lib /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\Python27\libs %PACKAGE_DIR%\Python27\libs /S/V/F/I
-xcopy %OSGEO4W_DIR%\apps\Python27\Scripts %PACKAGE_DIR%\Python27\Scripts /S/V/F/I
+ at echo.
+ at echo -----------------------------------------------------------------------------------------------------------------------
+ at echo Copy Tcl/Tk content to PACKAGE_DIR\lib
+ at echo -----------------------------------------------------------------------------------------------------------------------
+ at echo.
+mkdir %PACKAGE_DIR%\lib\tcl8.5
+mkdir %PACKAGE_DIR%\lib\tk8.5
+
+copy %OSGEO4W_PKG_DIR%\lib\tcl8.5\*.tcl %PACKAGE_DIR%\lib\tcl8.5
+copy %OSGEO4W_PKG_DIR%\lib\tcl8.5\tclIndex %PACKAGE_DIR%\lib\tcl8.5
+
+copy %OSGEO4W_PKG_DIR%\lib\tk8.5\*.tcl %PACKAGE_DIR%\lib\tk8.5
+copy %OSGEO4W_PKG_DIR%\lib\tk8.5\tclIndex %PACKAGE_DIR%\lib\tk8.5
+
+xcopy %OSGEO4W_PKG_DIR%\lib\tk8.5\ttk %PACKAGE_DIR%\lib\tk8.5\ttk /S/V/F/I
+
@echo.
@echo -----------------------------------------------------------------------------------------------------------------------
@echo Copy env.bat
Modified: grass/trunk/mswindows/env.bat
===================================================================
--- grass/trunk/mswindows/env.bat 2013-08-01 16:02:57 UTC (rev 57343)
+++ grass/trunk/mswindows/env.bat 2013-08-01 16:15:31 UTC (rev 57344)
@@ -1,14 +1,14 @@
rem Environmental variables for GRASS stand-alone installer
-set GRASS_PYTHON=%GISBASE%\extrabin\python.exe
-set GRASS_PROJSHARE=%GISBASE%\proj
set GRASS_HTML_BROWSER=explorer
+set GRASS_PYTHON=%GISBASE%\extrabin\python.exe
set PYTHONHOME=%GISBASE%\Python27
+
+set GRASS_PROJSHARE=%GISBASE%\proj
set GDAL_DATA=%GISBASE%\share\gdal
-set PROJ_LIB=%GISBASE%\proj
set GEOTIFF_CSV=%GISBASE%\share\epsg_csv
set PATH=%GISBASE%\msys\bin;%PATH%
set PATH=%GISBASE%\extrabin;%GISBASE%\extralib;%PATH%
-set PATH=%GISBASE%\sqlite\bin;%PATH%
+set PATH=%GISBASE%\bin;%PATH%
More information about the grass-commit
mailing list