Bill Jolitz @ Berkeley received this version from Lorindia Cherry
[unix-history] / usr / src / usr.bin / diction / style / style.sh
index 63bf502..975285b 100644 (file)
@@ -1,29 +1,41 @@
 #! /bin/sh
 #
 #! /bin/sh
 #
-#      @(#)style.sh    4.1     (Berkeley)      82/11/06
+#      @(#)style.sh    4.2     (Berkeley)      82/11/06
 #
 #
-B=/usr/lib
-echo $*
+L=/usr/lib/style
+C=/usr/llc/collect/scatch
+if test -w $C
+then
+echo $HOME $* `date` >>$C 2>/dev/null
+fi
+echo " " $*
 sflag=-s
 sflag=-s
+eflag=
+Pflag=
+nflag=
 lflag=
 lcon=
 rflag=
 rcon=
 mflag=-ms
 lflag=
 lcon=
 rflag=
 rcon=
 mflag=-ms
-mlflag=
-eflag=
-Pflag=
+mlflag=-ml
 for i in $*
 do case $i in
 -r) rflag=-r; shift; rcon=$1;shift;continue;;
 -l)lflag=-l; shift; lcon=$1;shift;continue;;
 -mm) mflag=-mm;shift;continue;;
 -ms) mflag=-ms;shift;continue;;
 for i in $*
 do case $i in
 -r) rflag=-r; shift; rcon=$1;shift;continue;;
 -l)lflag=-l; shift; lcon=$1;shift;continue;;
 -mm) mflag=-mm;shift;continue;;
 -ms) mflag=-ms;shift;continue;;
--ml) mlflag=-ml;shift;continue;;
+-li|-ml) mlflag=-ml;shift;continue;;
++li|-tt)mlflag=;shift;continue;;
 -p) sflag=-p;shift;continue;;
 -a) sflag=-a;shift;continue;;
 -e) eflag=-e;shift;continue;;
 -P) Pflag=-P;shift;continue;;
 -p) sflag=-p;shift;continue;;
 -a) sflag=-a;shift;continue;;
 -e) eflag=-e;shift;continue;;
 -P) Pflag=-P;shift;continue;;
+-n) nflag=-n;shift;continue;;
+-N) nflag=-N;shift;continue;;
+-flags) echo $0 "[-flags] [-r num] [-l num] [-e] [-p] [-n] [-N] [-a] [-P] [-mm|-ms] [-li|+li] [file ...]";exit;;
+-*) echo unknown style flag $i; exit;;
+*) break;;
 esac
 done
 esac
 done
-$B/deroff $mflag $mlflag $*^$B/style1^$B/style2^$B/style3 $rflag $rcon $lflag $lcon $sflag $eflag $Pflag
+deroff $mflag $mlflag $*^$L/style1^$L/style2^$L/style3 $rflag $rcon $lflag $lcon $sflag $nflag $eflag $Pflag