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

hi,

with the last modifications of the WinGrass7 and WinGrass7-installer, Grass7 is started by the grass70.py script.

if you start with the "GRASS-70-SVN"-desktop-shortcut, you get WinGrass7 starting AND in the background a full functional windows-console.

in this windows-console you can start - if you want within a Grass7-session - python or a shell (in this shell you have access to sed, awk, ...) and can use also all windows-commandline-tools.

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).

and the docs should be adapted for this.

any opinion?

best regards

Helmut
___________________________________________________________
NEU: WEB.DE DSL für 19,99 EUR/mtl. und ohne Mindest-Laufzeit!
http://produkte.web.de/go/02/

Hi,

2010/4/9 Helmut Kudrnovsky <hellik@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

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

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@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

Helmut Kudrnovsky wrote:

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?

Create a batch file which sets SHELL to the full Windows path to MSys'
sh.exe then runs grass70.py.

--
Glynn Clements <glynn@gclements.plus.com>

hi,
-----Ursprüngliche Nachricht-----
Von: Glynn Clements
Gesendet: 14.06.2010 18:01:27
An: Helmut Kudrnovsky
Betreff: Re: [GRASS-dev] WinGrass7-installer + "GRASS 7.0.SVN with MSYS"-desktop-shortcut

Helmut Kudrnovsky wrote:

>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?

Create a batch file which sets SHELL to the full Windows path to MSys'
sh.exe then runs grass70.py

now I'm a little bit confused, because the installed C:\Program Files\GRASS-70-SVN\grass70.bat already
does this:

"[...]
rem Path to the shell command
set GRASS_SH=%GISBASE%\msys\bin\sh.exe
[...]
%GRASS_PYTHON% "%GISBASE%\grass70.py" %*
"
in my original post (http://lists.osgeo.org/pipermail/grass-dev/2010-April/049998.html):

"in this windows-console you can start - if you want within a Grass7-session - python or a shell
(in this shell you have access to sed, awk, ...) and can use also all windows-commandline-tools."

so therefore I've suggested to remove the "WinGrass7 with msys-shortcut" because there is already a shell accessible.

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

Helmut Kudrnovsky wrote:

> >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?
>
>Create a batch file which sets SHELL to the full Windows path to MSys'
>sh.exe then runs grass70.py

now I'm a little bit confused, because the installed C:\Program Files\GRASS-70-SVN\grass70.bat already
does this:

"[...]
rem Path to the shell command
set GRASS_SH=%GISBASE%\msys\bin\sh.exe
[...]
%GRASS_PYTHON% "%GISBASE%\grass70.py" %*
"

That doesn't set SHELL, which is what grass70.py uses to decide which
shell to run.

GRASS_SH is the program used for running shell scripts.

in my original post (http://lists.osgeo.org/pipermail/grass-dev/2010-April/049998.html):

"in this windows-console you can start - if you want within a Grass7-session - python or a shell
(in this shell you have access to sed, awk, ...) and can use also all windows-commandline-tools."

so therefore I've suggested to remove the "WinGrass7 with msys-shortcut" because there is already a shell accessible.

There should be separate shortcuts for running GRASS with cmd.exe and
with sh.exe.

--
Glynn Clements <glynn@gclements.plus.com>