4.4BSD/usr/src/old/refer/OTHERS/roffbib.sh
#!/bin/sh -
#
# This module is believed to contain source code proprietary to AT&T.
# Use and redistribution is subject to the Berkeley Software License
# Agreement and your Software Agreement with AT&T (Western Electric).
#
# @(#)roffbib.sh 4.2 (Berkeley) 4/18/91
#
# roffbib sh script
#
flags=
abstr=
headr=BIBLIOGRAPHY
xroff=nroff
macro=-mbib
for i
do case $1 in
-[onsrT]*|-[qeh])
flags="$flags $1"
shift ;;
-x)
abstr=-x
shift ;;
-m)
shift
macro="-i $1"
shift ;;
-V)
xroff=vtroff
shift ;;
-Q)
xroff="troff -Q"
shift ;;
-H)
shift
headr="$1"
shift ;;
-*)
echo "roffbib: unknown flag: $1"
shift
esac
done
if test $1
then
(echo .ds TL $headr; refer -a1 -B$abstr $*) | $xroff $flags $macro
else
(echo .ds TL $headr; refer -a1 -B$abstr) | $xroff $flags $macro
fi