:
#	@(#) nr.sh 23.1 91/08/29 
#
#	Copyright (C) 1987-1991 The Santa Cruz Operation, Inc.
#		All Rights Reserved.
#	The information in this file is provided for the exclusive use of
#	the licensees of The Santa Cruz Operation, Inc.  Such users have the
#	right to use, modify, and incorporate this code into other products
#	for purposes authorized by the license agreement provided they include
#	this notice and the associated copyright notice with any such product.
#	The information in this file is provided "AS IS" without warranty.
#
# Shell script to pass its standard input to nroff.
#
col="0"
if [ "$TERM" = "300" -o "$TERM" = "300s" -o "$TERM" = "450" \
	-o "$TERM" = "37" -o "$TERM" = "4000a" -o "$TERM" = "382" \
	-o "$TERM" = "4014" -o "$TERM" = "tek" -o "$TERM" = "1620" \
	-o "$TERM" = "X" ]
then
	col="1"
fi
#
term="-T$TERM"
if [ "$TERM" = "" ]
then
   term=""
fi
#
if [ col = "0" ]
then
	tbl | eqn | nroff -man $term
else
	tbl | eqn | nroff -man $term | col -b
fi
