Commit | Line | Data |
---|---|---|
2958d0fe RH |
1 | #! /bin/sh |
2 | # | |
cd1d5718 | 3 | # @(#)style.sh 4.4 (Berkeley) 82/11/06 |
2958d0fe | 4 | # |
280efb10 | 5 | L=/usr/lib/style |
7c75fe64 | 6 | B=/usr/bin |
280efb10 | 7 | echo " " $* |
2958d0fe | 8 | sflag=-s |
280efb10 RH |
9 | eflag= |
10 | Pflag= | |
11 | nflag= | |
2958d0fe RH |
12 | lflag= |
13 | lcon= | |
14 | rflag= | |
15 | rcon= | |
cd1d5718 | 16 | mflag=-me |
280efb10 | 17 | mlflag=-ml |
cd1d5718 | 18 | kflag= |
2958d0fe RH |
19 | for i in $* |
20 | do 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 |
39 | esac |
40 | done | |
cd1d5718 | 41 | $B/deroff $kflag $mflag $mlflag $*^$L/style1^$L/style2^$L/style3 $rflag $rcon $lflag $lcon $sflag $nflag $eflag $Pflag |