#!/bin/sh
#
#  ediman -- use Edith to view a man page
#
#  This  file is (C) 1996 Annius Groenink/ZFC,  and is part of the Edith
#  Pro for X11 package.  Not to be distributed separately.
#

if [ $# = 0  ]
then
   if [ "$DISPLAY" = "" ]
   then
      echo "usage: `basename $0` [section] page ..."
   else
      edith -lapropos:
   fi
   exit 0
fi

if [ "$DISPLAY" = "" ]
then
   man $*
else
   edith "-lman:$*"
fi
