8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / refer / roffbib.sh
blob690147d40690e24ab623bb525a72ba7b644e370d
1 #!/usr/bin/sh
2 # Copyright 1988 Sun Microsystems, Inc. All Rights Reserved.
3 # Use is subject to license terms.
5 # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
6 # All Rights Reserved
8 # Copyright (c) 1980 Regents of the University of California.
9 # All rights reserved. The Berkeley software License Agreement
10 # specifies the terms and conditions for redistribution.
12 #! /usr/bin/sh
14 #pragma ident "%Z%%M% %I% %E% SMI"
17 # roffbib sh script
19 flags=
20 abstr=
21 headr=BIBLIOGRAPHY
22 xroff=/usr/bin/nroff
23 macro=-mbib
25 for i
26 do case $1 in
27 -[onsrT]*|-[qeh])
28 flags="$flags $1"
29 shift ;;
30 -x)
31 abstr="X.ig ]-"
32 shift ;;
33 -m)
34 shift
35 macro="-m$1"
36 shift ;;
37 -Q)
38 xroff="/usr/bin/troff"
39 shift ;;
40 -H)
41 shift
42 headr="$1"
43 shift ;;
44 -*)
45 echo "roffbib: unknown flag: $1"
46 shift
47 esac
48 done
49 if test $1
50 then
51 (echo .ds TL $headr; /usr/bin/refer -a1 -B"$abstr" $*) | \
52 $xroff $flags $macro
53 else
54 (echo .ds TL $headr; /usr/bin/refer -a1 -B"$abstr") | $xroff $flags $macro