[GRASS5] Re: Grass manual from html, online.
Michel Wurtz
mw at teledetection.fr
Wed Nov 8 14:40:52 EST 2000
Michel Wurtz wrote:
> -------------- $GISBASE/scripts/g.manual -----------------
[...]
> -f|-e|-s) echo Usage: `basename $0` [-1] [-a]
> entries=command,command,...; exit -1 ;;
Uuuh! some mailer will cut long lines : the two lines above sould be
on ONE line : look twice at the resulting file...
here is the file as an attachement (should work better)
--
Michel WURTZ - DIG - Maison de la télédétection
500, rue J.F. Breton
34093 MONTPELLIER Cedex 5
-------------- next part --------------
#!/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
More information about the grass-dev
mailing list