head     1.3;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.3
date     90.07.30.15.52.49;  author kemnitz;  state Exp;
branches ;
next     1.2;

1.2
date     90.07.30.15.52.04;  author kemnitz;  state Exp;
branches ;
next     1.1;

1.1
date     90.07.30.13.24.33;  author kemnitz;  state Exp;
branches ;
next     ;


desc
@Print script for stuff.
@


1.3
log
@Got rid of some junk.
@
text
@#!/bin/sh
#
#
# Usage: print <-P printer> filename

#
# Set site-specific variables here
#
PRINTER="-Plw"

#
# process everything
#

case $1 in
     -P)
       PRINTER="-P $1"
       FILE=$3;;
     -P*)
       PRINTER="$1"
       FILE=$2;;
     *)
       FILE=$1;;
esac

EQN=deqn
TBL=dtbl
GRN="grn $PRINTER"
LPRCMD="lpr $PRINTER"
TROFF="psroff -me $PRINTER"
PIC=pic

case $FILE in
      *.me)
          $TBL $FILE | $PIC | $EQN | $TROFF;;
      *.ps)
          $LPRCMD $PRINTER < $FILE;;
      *.doc)
          $LPRCMD $PRINTER < $FILE;;
	  *)
		  echo "print: File $FILE has an unknown extension."
esac
@


1.2
log
@*** empty log message ***
@
text
@d30 1
a30 1
TROFF="psroff -me $PRINTER -t"
@


1.1
log
@Initial revision
@
text
@d9 1
a9 1
PRINTER="-P lw"
d30 1
a30 1
TROFF="psroff -me $PRINTER "
d35 1
a35 3
          echo "$TBL $FILE | $PIC | $EQN | $TROFF -me $PRINTER";;
      *.grn)
          echo "$TBL $FILE | $GRN | $PIC | $EQN | $TROFF -me $PRINTER";;
d37 1
a37 1
          echo "$LPRCMD $PRINTER < $FILE";;
d39 1
a39 1
          echo "$LPRCMD $PRINTER < $FILE";;
d41 1
a41 1
		  echo "Oops!  File is $FILE"
@
