[GRASS-CVS] markus: grass6/scripts/g.manual g.manual,1.24,1.25

grass at intevation.de grass at intevation.de
Fri Nov 23 12:35:32 EST 2007


Author: markus

Update of /grassrepository/grass6/scripts/g.manual
In directory doto:/tmp/cvs-serv20695

Modified Files:
	g.manual 
Log Message:
D. Stoecker/openSuSe.org: don't fail if MAN is compressed

Index: g.manual
===================================================================
RCS file: /grassrepository/grass6/scripts/g.manual/g.manual,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- g.manual	10 Jul 2007 14:17:58 -0000	1.24
+++ g.manual	23 Nov 2007 17:35:30 -0000	1.25
@@ -80,6 +80,12 @@
 start_man()
 {
   if test ! -f "$GRASS_DOC_BASE"/man/man1/$1.1 -a -n $1 ; then
+    if test ! -f "$GRASS_DOC_BASE"/man/man1/$1.1.gz -a -n $1 ; then
+       echo "ERROR: no MAN page entry for <$1>." 1>&2
+       exit 1
+    else
+       man "$GRASS_DOC_BASE"/man/man1/$1.1.gz
+    fi
     g.message -e "No MAN page entry for <$1>."
     exit 1
   else




More information about the grass-commit mailing list