#sccs	"@(#)lp/model:dumb	1.2"


# lp interface for dumb parallel line printer
#

if [ "$3" ]
then
	echo
	echo
	echo
	echo
	x="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
	echo "\014\c"
	echo "$x\n$x\n$x\n$x\n"
	banner $3
	echo "$x\n$x\n$x\n$x\n"
	echo "\014\c"
fi

copies=$4
options=$5
raw=$6
shift; shift; shift; shift; shift
if [ "$1" = "-raw" ]
then
	shift
fi
files="$*"
i=1
while [ $i -le $copies ]
do
	for file in $files
	do
		if [ "x$options" = "x" ]
		then
			cat "$file" 2>&1
		else
			cat "$file" | $options 2>&1
		fi
		if [ "$raw" != "-raw" ]
		then
			echo "\014\c"
		fi
	done
	i=`expr $i + 1`
done
exit 0
