[GRASS5] g.manual twice

Markus Neteler neteler at geog.uni-hannover.de
Tue May 15 08:40:49 EDT 2001


Bev and all,

On Mon, May 14, 2001 at 12:13:10PM -0700, Wallace, Beverly T wrote:
> Markus and all,
> 
> I noticed that g.manual was there twice too.
Sorry from here, it was an undeleted binary residual.

In fact we have the script version active now and the C code present, but
unused. Should be removed when g.manual script is working everywhere.

> On a Solaris 5.6 machine, the
> script is the one that is used, and it does not work.
> 
> I get an "awk" error from the script version of g.manual.  I was able to fix
> that, but then there was another syntax problem with an "if" statement.  I
> fixed that, but there were still more problems, so I gave up.  There are
> probably even more syntax problems with statements that I did not reach.
> 
> "awk" problem:
> 	awk -F '='
> Solaris fix:
> 	awk -F= 
> 
> "if" problem:
> 	[ -e $html -a "$GRASS_TEXT_BROWSER" ]
> Solaris fix:
> 	[ "-e $html" -a "-e $GRASS_TEXT_BROWSER" ]


Thanks for this hint! I got it working on solaris, but
 - didn't need your awk modification
 - quotes another if statement

Here the diff to "old" CVS version:


 cvs diff g.manual 
Index: g.manual
===================================================================
RCS file: /grassrepository/grass/src/scripts/contrib/g.manual/g.manual,v
retrieving revision 1.20
diff -r1.20 g.manual
171c171
<   if [ -e $html -a "$GRASS_TEXT_BROWSER" ]
---
>   if [ "-e $html" -a "$GRASS_TEXT_BROWSER" ]
178c178
<   elif [ -e $man -a ! "$GRASS_TEXT_BROWSER" ]
---
>   elif [ "-e $man" -a ! "$GRASS_TEXT_BROWSER" ]

After fixing this, g.manual runs well for Linux and Solaris2.6.
I have updated in CVS.

Please report if any other platform is causing problems (after update).

cvs up src/scripts/contrib/g.manual
gmake5 -i src/scripts/contrib
which g.manual  # be sure to use the script version
g.manual d.rast

Thanks,

 Markus

> > -----Original Message-----
> > From:	Markus Neteler [SMTP:neteler at geog.uni-hannover.de]
> > Sent:	Sunday, May 13, 2001 3:06 AM
> > To:	grass5 developers list
> > Subject:	[GRASS5] g.manual twice
> > 
> > Hi all,
> > 
> > we have currently g.manual twice in GRASS
> >  - src/general/g.manual
> >  - scripts/contrib/g.manual
> > 
> > As far as I remember, the script is new. Shall I remove the
> > old C-implementation?
> > 
> > At time (due to path order) the C version will be used.
> > 
> > Markus
> > 
> > ---------------------------------------- 
> > If you want to unsubscribe from GRASS Development Team mailing list write
> > to:
> > minordomo at geog.uni-hannover.de with
> > subject 'unsubscribe grass5'
> 
> ---------------------------------------- 
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo at geog.uni-hannover.de with
> subject 'unsubscribe grass5'
> 

-- 
Markus Neteler *  University of Hannover
Institute of Physical Geography and Landscape Ecology
Schneiderberg 50 * D-30167 Hannover * Germany
Tel: ++49-(0)511-762-4494  Fax: -3984

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list