view usr/src/cmd/refer/roffbib.sh @ 14050:0c8d9998d589

3747 txg commit callbacks don't work Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Christopher Siden <christopher.siden@delphix.com>
author Will Andrews <willa@spectralogic.com>
date Tue, 11 Jun 2013 09:13:51 -0800
parents 68f95e015346
children
line wrap: on
line source

#!/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
#
flags=
abstr=
headr=BIBLIOGRAPHY
xroff=/usr/bin/nroff
macro=-mbib

for i
do case $1 in
	-[onsrT]*|-[qeh])
		flags="$flags $1"
		shift ;;
	-x)
		abstr="X.ig ]-"
		shift ;;
	-m)
		shift
		macro="-m$1"
		shift ;;
	-Q)
		xroff="/usr/bin/troff"
		shift ;;
	-H)
		shift
		headr="$1"
		shift ;;
	-*)
		echo "roffbib: unknown flag: $1"
		shift
	esac
done
if test $1
then
	(echo .ds TL $headr; /usr/bin/refer -a1 -B"$abstr" $*) | \
	    $xroff $flags $macro
else
	(echo .ds TL $headr; /usr/bin/refer -a1 -B"$abstr") | $xroff $flags $macro
fi