#!  /bin/csh -f
########################################################################
#                 copyright 2001, Amoco Production Company             #
#                             All Rights Reserved                      #
#                     an affiliate of BP America Inc.                  #
########################################################################


@ nman = `wc -l < all`
echo "Printing "$nman" man pages"

@ i = 1

while ( $i <= $nman )

fetch all $i $i
set manp = `fetch all $i $i`
echo "Printing man page "$i"  "$manp
troff -t -man $manp.1 | lpr -P $PRINTER -t -h
@ i = $i + 1

end
