|
|
1.1 ! root 1: #! /bin/sh ! 2: # ! 3: # @(#)roffbib.sh 4.1 (Berkeley) 83/05/08 ! 4: # ! 5: # roffbib sh script ! 6: # ! 7: flags= ! 8: abstr= ! 9: headr=BIBLIOGRAPHY ! 10: xroff=nroff ! 11: macro=-mbib ! 12: ! 13: for i ! 14: do case $1 in ! 15: -[onsrT]*|-[qeh]) ! 16: flags="$flags $1" ! 17: shift ;; ! 18: -x) ! 19: abstr=-x ! 20: shift ;; ! 21: -m) ! 22: shift ! 23: macro="-i $1" ! 24: shift ;; ! 25: -V) ! 26: xroff=vtroff ! 27: shift ;; ! 28: -Q) ! 29: xroff="troff -Q" ! 30: shift ;; ! 31: -H) ! 32: shift ! 33: headr="$1" ! 34: shift ;; ! 35: -*) ! 36: echo "roffbib: unknown flag: $1" ! 37: shift ! 38: esac ! 39: done ! 40: if test $1 ! 41: then ! 42: (echo .ds TL $headr; refer -a1 -B$abstr $*) | $xroff $flags $macro ! 43: else ! 44: (echo .ds TL $headr; refer -a1 -B$abstr) | $xroff $flags $macro ! 45: fi
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.