#! /bin/sh
#
# Kees Lemmens, Oct 1997
#

PATH="/bin:/usr/bin:/usr/bin/X11:/opt/bin/X11:/opt/bin:/opt/lib/xfax"

#PRINTCMD="lpr -Pps"   # Linux
#PRINTCMD="lpps -"     # script with ghostview driving lp -oraw (SYSV)
PRINTCMD="ghostview -" # for testing purposes

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

for NAM in `\ls $BASEDIR/`
do
    efix -i fax -o ps -p$PAGESIZE -s$SCALEFACTOR $BASEDIR/$NAM | $PRINTCMD
done
rm -rf $BASEDIR
