#!/bin/sh
#
# Script for faking out man(1) under IRIX.  Install as nroff, neqn and tbl.
# Use at own risk.  No guarantees.
# 				1-Oct-90 -jim@barqoue.stanford.edu
#
case $0 in
	*/nroff)
	   args=awf
	   continue;;
	*)
	   args=cat
	   continue;;
esac
while [ x$1 != x ]; do
    case $1 in
	/usr/pub/eqnchar)
  	    shift
	    continue;;
	-ms)
	    args="$args $1"
 	    shift
	    continue;;
	-man)
	    args="$args $1"
	    shift
	    continue;;
	-*)
	    shift
	    continue;;
	*tmac.an)
	   args="$args -man"
	   shift
	   continue;;
	*tmac.s) 
	   args="$args -ms"
           shift
	   continue;;
	*)
	   args="$args $1"
	   shift
	   continue;;
    esac
done
exec $args
