#!/bin/csh -f
#
#  roff multiplexer - uses simple heuristics to determine which macros
#		      the troff file is using (if any).  Runs the
#		      appropriate summarizer.
#
grep -s -e '^\.AB' $1
if ($status == 0) then
	roff-ms $1
	exit 0
endif
grep -s -e '^\.TH' $1
if ($status == 0) then
	roff-man $1
	exit 0
endif
grep -s -e '^\.sh' $1
if ($status == 0) then
	roff-me $1
	exit 0
endif
roff-generic $1
exit 0
