#! /bin/csh ####################### foreach f ( mtc-add mtc-ads ) foreach i ( 1 2 3 ) pdflatex $f bibtex $f if ( -e $f.idx ) then makeindex -s gind.ist -o $f.ind $f.idx endif if ( -e $f.glo ) then makeindex -s gglo.ist -o $f.gls $f.glo endif end if ( -e $f.maf) then \rm -f `cat $f.maf` $f.aux $f.log $f.toc $f.bbl $f.blg $f.lof $f.lot $f.ind $f.idx $f.ind $f.maf endif end ####################### foreach f ( mtc-hi1 mtc-hi2 mtc-apx mtc-amm mtc-mem mtc-mm1 mtc-fo1 mtc-fo2 mtc-scr mtc-sbf \ mtc-tsf mtc-tbi mtc-2c mtc-bo mtc-hop mtc-cri mtc-liv mtc-ch0 mtc-tlc mtc-mu mtc-hir mtc-hia mtc-gap \ mtc-bk mtc-art mtc-2nd mtc-syn ) foreach i ( 1 2 3 ) pdflatex $f end if ( -e $f.maf) then \rm -f `cat $f.maf` $f.aux $f.log $f.toc $f.bbl $f.blg $f.lof $f.lot $f.ind $f.idx $f.ind $f.maf endif end