[GRASS5] Grass manual from html, online.

Michel Wurtz mw at teledetection.fr
Wed Nov 8 14:34:44 EST 2000


I have uploaded a new Gmakefile for converting all .html files
(in grass/html) and upgraded g.html2man in the CVS tree.

The manual pages are now in $GISBASE/man/1, and end with .1,
so if you want to use g.manual, you should say, for exemple
"g.manual d.mon.1" instead of "g.manual d.mon".

I propose to replace g.manual by the following script, which
has the advantage of using man, giving the man a much better look.

It lacks the -f -e and -s flags, but they are not really usefull...

If you want to test it, just remove $GISBASE/bin/g.manual
$GISBASE/etc/bin/main/inter/g.manual and
$GISBASE/etc/bin/main/cmd/g.manual

then put the following file in $GISBASE/scripts/g.manual,
run grass, and even the man in tcltkgrass should work

-------------- $GISBASE/scripts/g.manual -----------------
#!/bin/sh
if [ $# -lt 1 ]
  then
    echo Usage: `basename $0` [-1] [-a] entries=command,command,...
    exit -1
fi
case $1 in
-1) /bin/ls $GISBASE/man/1 | more ;;
-a) /bin/ls -C $GISBASE/man/1 | more ;;
-f|-e|-s) echo Usage: `basename $0` [-1] [-a] entries=command,command,...; exit
-1 ;;
entries=*) man $GISBASE/man/1/`echo $1 | sed -e 's!entries=!!' \
           -e "s!, *!.1 $GISBASE/man/1/!g"`.1;;
*) man $GISBASE/man/1/$1.1;;
esac
------------end of file -----------------

I'm waiting for your comments (but won't do anything, reply or
even read my mail until next monday : I will not be at my office)

--
Michel WURTZ - DIG - Maison de la télédétection
               500, rue J.F. Breton
               34093 MONTPELLIER Cedex 5

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