#!/bin/csh
# simplified for PostScript plot files plo command June '98 R. Ghosh
# PRI - S. Fayers 27/10/95
#
# This takes the arguments from the command line, checks to see if the 
# file has a .lis extension, and if it does, uses fpr to format the 
# listing file as fortran listing with page throws.
# This formatted output, as well as files not ending in .lis are passed to
# lp for printing
if ($?SAS_PLOTTER == 0 ) then
	echo "Please choose a printer using command myplotter"
        exit
endif
foreach file ($argv[*]) 
#		lp -d$SAS_PLOTTER $file
# July 2006 (REG) for CUPS EPS PROBLEMS _ filter
                deps < $file | lp -d$SAS_PLOTTER
end
