[GRASS-dev] WinGrass7-installer + "GRASS 7.0.SVN with MSYS"-desktop-shortcut

Helmut Kudrnovsky hellik at web.de
Sun Jun 13 17:15:05 EDT 2010


Hi
>-----Ursprüngliche Nachricht-----
>Von: Martin Landa
>Gesendet: 13.06.2010 15:16:04
>An: Helmut Kudrnovsky 
>Betreff: Re: [GRASS-dev] WinGrass7-installer + "GRASS 7.0.SVN with  MSYS"-desktop-shortcut
>
>Hi,
>
>2010/4/9 Helmut Kudrnovsky <hellik at web.de>:
>> the "GRASS 7.0.SVN with MSYS"-desktop-shortcut is broken at the moment.
>> so I would opt for deleting the "GRASS 7.0.SVN with MSYS"-desktop-shortcut, because a full functional commandline is available (see above).
>
>I would rather vote for fixing starting script to enable start with
>MSYS, not just removing this option.
>
>Martin

at the moment by the WinGrass7-installer there are installed following files C:\Program Files\GRASS-70-SVN:

- grass70.bat:

"rem *******Environment variables***********

rem Set GRASS Installation Directory Variable
set GISBASE=C:\Program Files\GRASS-70-SVN

rem Directory where your .grass7/rc file will be stored
set HOME=%USERPROFILE%

rem Name of the wish (Tk) executable
set GRASS_WISH=wish.exe

rem Path to the shell command
set GRASS_SH=%GISBASE%\msys\bin\sh.exe

rem Set Path to utilities (libraries and bynaries) used by GRASS
set PATH=%GISBASE%\msys\bin;%PATH%
set PATH=%GISBASE%\extrabin;%GISBASE%\extralib;%PATH%
set PATH=%GISBASE%\tcl-tk\bin;%GISBASE%\sqlite\bin;%GISBASE%\gpsbabel;%PATH%

rem Set Path to default web browser
set GRASS_HTML_BROWSER=explorer

rem Path to the proj files (notably the epsg projection list)
set GRASS_PROJSHARE=%GISBASE%\proj

rem Path to the python directory
set PYTHONHOME=%GISBASE%\Python25
if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python

%GRASS_PYTHON% "%GISBASE%\grass70.py" %*"


- grass70.sh:

"trap "echo 'User break!' ; exit" 2 3 9 15

# Set the GISBASE variable
GISBASE="/C/Program Files/GRASS-70-SVN"
export GISBASE

# Set the PATH variable
PATH="$GISBASE/extrabin:$GISBASE/extralib:$PATH"
PATH="$GISBASE/tcl-tk/bin:$GISBASE/sqlite/bin:$GISBASE/gpsbabel:$PATH"
export PATH
# Set the PYTHONPATH variable
PYTHONPATH="$GISBASE/etc/python:$GISBASE/Python25:$PYTHONPATH"
export PYTHONPATH
PYTHONHOME="C:\Program Files\GRASS-70-SVN\Python25"
export PYTHONHOME
if [ -z "$GRASS_PYTHON" ] ; then
 GRASS_PYTHON=python
 export GRASS_PYTHON
fi

# Set the GRASS_PROJSHARE variable
GRASS_PROJSHARE="C:\Program Files\GRASS-70-SVN\proj"
export GRASS_PROJSHARE

"$GRASS_PYTHON $GISBASE/grass70.py" "$@"
"

and grass70.py

the desktop-shortcut to start WinGrass7 with Msys is actuallay following:

"C:\Program Files\GRASS-70-SVN\msys\msys.bat" "/grass/bin/grass70 -wxpython"
(http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-Installer.nsi#L624)

I've tried a little different approaches to launch WinGrass7 with a msys-command-line , but no success at 
the moment.

maybe any hints?

Helmut
___________________________________________________________
WEB.DE DSL ab 19,99 Euro/Monat. Bis zu 150,- Euro Startguthaben und
50,- Euro Geldprämie inklusive! https://freundschaftswerbung.web.de


More information about the grass-dev mailing list