file reorg, pathnames.h, paths.h
[unix-history] / usr / src / usr.bin / diction / style / style.sh
CommitLineData
2958d0fe
RH
1#! /bin/sh
2#
435e8dff 3# @(#)style.sh 4.6 (Berkeley) 89/05/11
2958d0fe 4#
435e8dff
KB
5L=/usr/libexec
6B=/usr/ucb
280efb10 7echo " " $*
2958d0fe 8sflag=-s
280efb10
RH
9eflag=
10Pflag=
11nflag=
2958d0fe
RH
12lflag=
13lcon=
14rflag=
15rcon=
cd1d5718 16mflag=-me
280efb10 17mlflag=-ml
cd1d5718 18kflag=
2958d0fe
RH
19for i in $*
20do case $i in
21-r) rflag=-r; shift; rcon=$1;shift;continue;;
22-l)lflag=-l; shift; lcon=$1;shift;continue;;
23-mm) mflag=-mm;shift;continue;;
24-ms) mflag=-ms;shift;continue;;
cd1d5718
RH
25-me) mflag=-me;shift;continue;;
26-ma) mflag=-ma;shift;continue;;
280efb10
RH
27-li|-ml) mlflag=-ml;shift;continue;;
28+li|-tt)mlflag=;shift;continue;;
2958d0fe
RH
29-p) sflag=-p;shift;continue;;
30-a) sflag=-a;shift;continue;;
31-e) eflag=-e;shift;continue;;
32-P) Pflag=-P;shift;continue;;
280efb10
RH
33-n) nflag=-n;shift;continue;;
34-N) nflag=-N;shift;continue;;
cd1d5718 35-k) kflag=-k;shift;continue;;
280efb10
RH
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
cd1d5718 41$B/deroff $kflag $mflag $mlflag $*^$L/style1^$L/style2^$L/style3 $rflag $rcon $lflag $lcon $sflag $nflag $eflag $Pflag