Commit | Line | Data |
---|---|---|
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 | 10 | L=/usr/libexec |
c95c8188 | 11 | B=/usr/bin |
280efb10 | 12 | echo " " $* |
2958d0fe | 13 | sflag=-s |
280efb10 RH |
14 | eflag= |
15 | Pflag= | |
16 | nflag= | |
2958d0fe RH |
17 | lflag= |
18 | lcon= | |
19 | rflag= | |
20 | rcon= | |
cd1d5718 | 21 | mflag=-me |
280efb10 | 22 | mlflag=-ml |
cd1d5718 | 23 | kflag= |
2958d0fe RH |
24 | for i in $* |
25 | do 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 |
44 | esac |
45 | done | |
44ccd657 | 46 | $B/deroff $kflag $mflag $mlflag $* | $L/style1 | $L/style2 | $L/style3 $rflag $rcon $lflag $lcon $sflag $nflag $eflag $Pflag |