Commit | Line | Data |
---|---|---|
2958d0fe RH |
1 | #! /bin/sh |
2 | # | |
280efb10 | 3 | # @(#)style.sh 4.2 (Berkeley) 82/11/06 |
2958d0fe | 4 | # |
280efb10 RH |
5 | L=/usr/lib/style |
6 | C=/usr/llc/collect/scatch | |
7 | if test -w $C | |
8 | then | |
9 | echo $HOME $* `date` >>$C 2>/dev/null | |
10 | fi | |
11 | echo " " $* | |
2958d0fe | 12 | sflag=-s |
280efb10 RH |
13 | eflag= |
14 | Pflag= | |
15 | nflag= | |
2958d0fe RH |
16 | lflag= |
17 | lcon= | |
18 | rflag= | |
19 | rcon= | |
20 | mflag=-ms | |
280efb10 | 21 | mlflag=-ml |
2958d0fe RH |
22 | for i in $* |
23 | do 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 |
39 | esac |
40 | done | |
280efb10 | 41 | deroff $mflag $mlflag $*^$L/style1^$L/style2^$L/style3 $rflag $rcon $lflag $lcon $sflag $nflag $eflag $Pflag |