BSD 4_4 release
[unix-history] / usr / src / usr.bin / diction / style / style.sh
CommitLineData
2791ff57 1#!/bin/sh -
2958d0fe 2#
ad787160
C
3# This module is believed to contain source code proprietary to AT&T.
4# Use and redistribution is subject to the Berkeley Software License
5# Agreement and your Software Agreement with AT&T (Western Electric).
2958d0fe 6#
ad787160 7# @(#)style.sh 8.1 (Berkeley) 6/6/93
2791ff57
KB
8#
9
435e8dff 10L=/usr/libexec
c95c8188 11B=/usr/bin
280efb10 12echo " " $*
2958d0fe 13sflag=-s
280efb10
RH
14eflag=
15Pflag=
16nflag=
2958d0fe
RH
17lflag=
18lcon=
19rflag=
20rcon=
cd1d5718 21mflag=-me
280efb10 22mlflag=-ml
cd1d5718 23kflag=
2958d0fe
RH
24for i in $*
25do case $i in
26-r) rflag=-r; shift; rcon=$1;shift;continue;;
27-l)lflag=-l; shift; lcon=$1;shift;continue;;
28-mm) mflag=-mm;shift;continue;;
29-ms) mflag=-ms;shift;continue;;
cd1d5718
RH
30-me) mflag=-me;shift;continue;;
31-ma) mflag=-ma;shift;continue;;
280efb10
RH
32-li|-ml) mlflag=-ml;shift;continue;;
33+li|-tt)mlflag=;shift;continue;;
2958d0fe
RH
34-p) sflag=-p;shift;continue;;
35-a) sflag=-a;shift;continue;;
36-e) eflag=-e;shift;continue;;
37-P) Pflag=-P;shift;continue;;
280efb10
RH
38-n) nflag=-n;shift;continue;;
39-N) nflag=-N;shift;continue;;
cd1d5718 40-k) kflag=-k;shift;continue;;
280efb10
RH
41-flags) echo $0 "[-flags] [-r num] [-l num] [-e] [-p] [-n] [-N] [-a] [-P] [-mm|-ms] [-li|+li] [file ...]";exit;;
42-*) echo unknown style flag $i; exit;;
43*) break;;
2958d0fe
RH
44esac
45done
44ccd657 46$B/deroff $kflag $mflag $mlflag $* | $L/style1 | $L/style2 | $L/style3 $rflag $rcon $lflag $lcon $sflag $nflag $eflag $Pflag