#!/usr/bin/sh # Copyright 1988 Sun Microsystems, Inc. All Rights Reserved. # Use is subject to license terms. # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T # All Rights Reserved # Copyright (c) 1980 Regents of the University of California. # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. #! /usr/bin/sh #pragma ident "%Z%%M% %I% %E% SMI" # # roffbib sh script # setvar flags = '' setvar abstr = '' setvar headr = 'BIBLIOGRAPHY' setvar xroff = '/usr/bin/nroff' setvar macro = '-mbib'for i in @ARGV { match $1 { with -[onsrT]*|-[qeh] setvar flags = ""$flags $1"" shift with -x setvar abstr = ""X.ig ]-"" shift with -m shift setvar macro = ""-m$1"" shift with -Q setvar xroff = ""/usr/bin/troff"" shift with -H shift setvar headr = "$1" shift with -* echo "roffbib: unknown flag: $1" shift } } if test $1 { shell {echo .ds TL $headr; /usr/bin/refer -a1 -B"$abstr" $ifsjoin(ARGV)} | \ $xroff $flags $macro } else { shell {echo .ds TL $headr; /usr/bin/refer -a1 -B"$abstr"} | $xroff $flags $macro }