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

grass at intevation.de grass at intevation.de
Fri Nov 23 12:36:31 EST 2007


Author: markus

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

Modified Files:
      Tag: releasebranch_6_3
	g.manual 
Log Message:
D. Stoecker/openSuSe.org: don't fail if MAN is compressed (merge from HEAD)

Index: g.manual
===================================================================
RCS file: /grassrepository/grass6/scripts/g.manual/g.manual,v
retrieving revision 1.24
retrieving revision 1.24.2.1
diff -u -d -r1.24 -r1.24.2.1
--- g.manual	10 Jul 2007 14:17:58 -0000	1.24
+++ g.manual	23 Nov 2007 17:36:29 -0000	1.24.2.1
@@ -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