home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-User.iso / usr / bin / style < prev    next >
Text File  |  1997-03-28  |  946b  |  39 lines

  1. #! /bin/sh
  2. L=/usr/lib
  3. B=/usr/bin
  4. echo " " $*
  5. sflag=-s
  6. eflag=
  7. Pflag=
  8. nflag=
  9. lflag=
  10. lcon=
  11. rflag=
  12. rcon=
  13. mflag=-me
  14. mlflag=-ml
  15. kflag=
  16. for i in $*
  17. do case $i in
  18. -r) rflag=-r; shift; rcon=$1;shift;continue;;
  19. -l)lflag=-l; shift; lcon=$1;shift;continue;;
  20. -mm) mflag=-mm;shift;continue;;
  21. -ms) mflag=-ms;shift;continue;;
  22. -me) mflag=-me;shift;continue;;
  23. -ma) mflag=-ma;shift;continue;;
  24. -li|-ml) mlflag=-ml;shift;continue;;
  25. +li|-tt)mlflag=;shift;continue;;
  26. -p) sflag=-p;shift;continue;;
  27. -a) sflag=-a;shift;continue;;
  28. -e) eflag=-e;shift;continue;;
  29. -P) Pflag=-P;shift;continue;;
  30. -n) nflag=-n;shift;continue;;
  31. -N) nflag=-N;shift;continue;;
  32. -k) kflag=-k;shift;continue;;
  33. -flags) echo $0 "[-flags] [-r num] [-l num] [-e] [-p] [-n] [-N] [-a] [-P] [-mm|-ms] [-li|+li] [file ...]";exit;;
  34. -*) echo unknown style flag $i; exit;;
  35. *) break;;
  36. esac
  37. done
  38. $B/deroff $kflag $mflag $mlflag $*^$L/style1^$L/style2^$L/style3 $rflag $rcon $lflag $lcon $sflag $nflag $eflag $Pflag
  39.