#! /bin/sh
#
# This script is called by Lotus when a file is printed.
#
# Copyright (C) 1992  by J. Chung
#
# Modification log:
#

case "$1" in
    fax)
	# 
	# This entry is only valid if there is fax entry in the
	# printcap file. Eventhough, in functionality, fax entry
	# in printcap does not have anything to do with this,
	# This script still needs entry called "fax" in printcap
	#
	# Special Hooks for XpressFax
        #
        # Written by J. Chung for XpressFax Hook
        #
	if [ "$XPRESSFAX_HOME" = "" ]; then
		XPRESSFAX_HOME=/usr/xpressfax
	fi
	
        $XPRESSFAX_HOME/bin/faxtransmit $2

	;;

    *)
	########################################################
	# This is the normal(?) case (all other architectures) #
	########################################################
	#
	# For DEC Ultrix version 4.0, you may need to add the
	# "-Dpostscript" option to both of the lpr commands below.

    	lpr -P"$1" "$2"
    ;;
esac

