#! /bin/sh
#
# Kees Lemmens, Oct 1997
# modified J.-P. Demailly, Dec 1998
#

PATH=

PRINTCMD="gv"          # Print after viewing PostScript with gv or ghostview
                       # highly recommended!
#PRINTCMD="lpr -Pps"   # Linux
#PRINTCMD="lpps -"     # script with ghostview driving lp -oraw (SYSV)


PAGESIZE="21x29.7cm"   # Paper format A4
SCALEFACTOR="1.0x1.0"  # Output format scaling
BASEDIR=$1

efix -i fax -o ps -p$PAGESIZE -s$SCALEFACTOR $BASEDIR/g3fax_* \
   > $BASEDIR/output.ps
$PRINTCMD $BASEDIR/output.ps

rm -f $BASEDIR/output.ps
