Bill Jolitz @ Berkeley received this version from Lorindia Cherry
[unix-history] / usr / src / usr.bin / diction / style / style.sh
CommitLineData
2958d0fe
RH
1#! /bin/sh
2#
280efb10 3# @(#)style.sh 4.2 (Berkeley) 82/11/06
2958d0fe 4#
280efb10
RH
5L=/usr/lib/style
6C=/usr/llc/collect/scatch
7if test -w $C
8then
9echo $HOME $* `date` >>$C 2>/dev/null
10fi
11echo " " $*
2958d0fe 12sflag=-s
280efb10
RH
13eflag=
14Pflag=
15nflag=
2958d0fe
RH
16lflag=
17lcon=
18rflag=
19rcon=
20mflag=-ms
280efb10 21mlflag=-ml
2958d0fe
RH
22for i in $*
23do case $i in
24-r) rflag=-r; shift; rcon=$1;shift;continue;;
25-l)lflag=-l; shift; lcon=$1;shift;continue;;
26-mm) mflag=-mm;shift;continue;;
27-ms) mflag=-ms;shift;continue;;
280efb10
RH
28-li|-ml) mlflag=-ml;shift;continue;;
29+li|-tt)mlflag=;shift;continue;;
2958d0fe
RH
30-p) sflag=-p;shift;continue;;
31-a) sflag=-a;shift;continue;;
32-e) eflag=-e;shift;continue;;
33-P) Pflag=-P;shift;continue;;
280efb10
RH
34-n) nflag=-n;shift;continue;;
35-N) nflag=-N;shift;continue;;
36-flags) echo $0 "[-flags] [-r num] [-l num] [-e] [-p] [-n] [-N] [-a] [-P] [-mm|-ms] [-li|+li] [file ...]";exit;;
37-*) echo unknown style flag $i; exit;;
38*) break;;
2958d0fe
RH
39esac
40done
280efb10 41deroff $mflag $mlflag $*^$L/style1^$L/style2^$L/style3 $rflag $rcon $lflag $lcon $sflag $nflag $eflag $Pflag