# /bin/tcsh
#
# Generate two-column .ps and .pdf listings of the source files.
#
# This script uses ~gfisher/bin/codeprint2, which is quite a hack.  Check it
# out if you like, but please don't complain about how nasty it looks.  The
# codeprint2 script is NOT an example of good shell programming, and CSC 357
# students should NOT consider it as such.
#
codeprint2 ./ps "" *.c *.h *.java Makefile
cd ps
foreach f (*-2c.ps)
    echo $f
    ps2pdf $f $f:r.pdf
    mv $f:r.pdf ../pdf
end
cd ..