|
|
1.1 ! root 1: # MMTSID (@(#)mmt.sh 1.11) ! 2: u=-cm; if test `basename $0` = "mvt"; then u=-mv; fi ! 3: if test $# = 0; then help text1 >&2; exit 1; fi ! 4: PATH=/bin:/usr/bin:/usr/lbin; O=""; o=""; y="" ! 5: # 'If C/A/T connected to PDP-11, use O=""; o=""' ! 6: # 'If GCOS use O="-g"; o="|gcat -ph"' ! 7: while test -n "$1" -a ! -r "$1" ! 8: do case $1 in ! 9: -a) O="-a"; o="" ;; ! 10: -Tst|-Ts) O="-g"; o="|gcat -st" ;; ! 11: -T4014|-Ttek) O="-t"; o="|tc"; y="-rX1" ;; ! 12: -Tvp) O="-t"; o="|vpr -t"; y="-rX1" ;; ! 13: -e) e=eqn ;; ! 14: -t) f=tbl ;; ! 15: -y) if test "$u" = "-cm"; then u=-mm; fi ;; ! 16: -) break ;; ! 17: *) a="$a $1" ;; ! 18: esac ! 19: shift ! 20: done ! 21: if test -z "$1"; then echo "$0: no input file" >&2; exit 1; fi ! 22: if test "$O" = "-g"; then x="-f$1"; fi ! 23: d="$*" ! 24: if test "$d" = "-"; then shift; x=""; d=""; fi ! 25: if test -n "$f"; then f="tbl $*|"; d=""; fi ! 26: if test -n "$e" ! 27: then if test -n "$f" ! 28: then e="eqn /usr/pub/eqnchar -|" ! 29: else if test -z "$*" ! 30: then e="eqn /usr/pub/eqnchar -|" ! 31: else e="eqn /usr/pub/eqnchar $*|" ! 32: fi; d="" ! 33: fi ! 34: fi ! 35: if test "$u" = "-mm" -o "$u" = "-cm" ; then y=""; fi ! 36: eval $f $e troff $y $O $u $a $d $o $x; exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.