#! /bin/csh -f # Last modified on Fri Apr 22 03:19:16 1988 by stolfi #================================================== # Usage: thesis-aptex [-Pprinter] # Runs aptex on .dvi, ships the result to jumbo, # and then to the indicated printer (default homelite). #================================================== if ( $#argv < 1 ) then echo "Missing argument" exit(1) endif if ( "X$1" =~ X-P* ) then set printer = $1 shift else set printer = -Phomelite endif if ( $#argv < 1 ) then echo "Missing argument" exit(1) endif foreach f ( $* ) set f = $f:r echo printing $f... (cd figbits ; parmake $f ) aptex -noprint -norev $f.dvi &&\ copy ap*.ps /jumbo/`pwd`/$f.ps &&\ msh jumbo "lpr $printer -s "`pwd`"/$f.ps ; lpq $printer " &&\ rm $f.ps end