1#!/bin/sh - 2# 3# %sccs.include.proprietary.sh% 4# 5# @(#)roffbib.sh 4.2 (Berkeley) 04/18/91 6# 7 8# roffbib sh script 9# 10flags= 11abstr= 12headr=BIBLIOGRAPHY 13xroff=nroff 14macro=-mbib 15 16for i 17do case $1 in 18 -[onsrT]*|-[qeh]) 19 flags="$flags $1" 20 shift ;; 21 -x) 22 abstr=-x 23 shift ;; 24 -m) 25 shift 26 macro="-i $1" 27 shift ;; 28 -V) 29 xroff=vtroff 30 shift ;; 31 -Q) 32 xroff="troff -Q" 33 shift ;; 34 -H) 35 shift 36 headr="$1" 37 shift ;; 38 -*) 39 echo "roffbib: unknown flag: $1" 40 shift 41 esac 42done 43if test $1 44then 45 (echo .ds TL $headr; refer -a1 -B$abstr $*) | $xroff $flags $macro 46else 47 (echo .ds TL $headr; refer -a1 -B$abstr) | $xroff $flags $macro 48fi 49