[GRASS-CVS] markus: grass6/scripts/g.manual g.manual, 1.16.4.2, 1.16.4.3

grass at intevation.de grass at intevation.de
Fri Nov 23 12:40:47 EST 2007


Author: markus

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

Modified Files:
      Tag: releasebranch_6_2
	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.16.4.2
retrieving revision 1.16.4.3
diff -u -d -r1.16.4.2 -r1.16.4.3
--- g.manual	8 Mar 2007 13:51:30 -0000	1.16.4.2
+++ g.manual	23 Nov 2007 17:40:45 -0000	1.16.4.3
@@ -81,8 +81,14 @@
 start_man()
 {
   if test ! -f "$GRASS_DOC_BASE"/man/man1/$1.1 -a -n $1 ; then
-    echo "ERROR: no MAN page entry for <$1>." 1>&2
-    exit 1
+     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
+     echo "ERROR: no MAN page entry for <$1>." 1>&2
+     exit 1
   else
     man "$GRASS_DOC_BASE"/man/man1/$1.1
   fi




More information about the grass-commit mailing list