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

  1. #! /bin/sh
  2. D=/usr/bin
  3. B=/usr/lib
  4. echo $*
  5. rest=
  6. flag=
  7. nflag=
  8. mflag=-me
  9. lflag=-ml
  10. kflag=
  11. file=
  12. for i
  13. do case $i in
  14.  -f) flag=-f;shift; file=$1; shift; continue;;
  15. -n) nflag=-n;shift; continue;;
  16. -k) kflag=-k;shift; continue;;
  17.  -mm) mflag=$1; shift; continue;;
  18. -ms) mflag=$1;shift;continue;;
  19. -me) mflag=$1;shift;continue;;
  20. -ma) mflag=$1;shift;continue;;
  21. -ml) lflag=$1;shift;continue;;
  22. *) rest=$*; break;;
  23. esac
  24. done
  25.  $D/deroff $kflag $lflag $mflag $rest^$B/dprog -d $nflag $flag $file
  26.