#!/bin/sh NAME=`echo $1 | sed "s/\.tex//g"` if [ "$NAME" = "" ] then echo " " echo "please supply tex file name as first argument" echo " " exit fi # # The following are specific to cpt_tasks.cls # rm -f $NAME.mtc rm -f $NAME.sot rm -f $NAME.sod rm -f $NAME.sor rm -f $NAME.dot rm -f $NAME.dod rm -f $NAME.dor rm -f $NAME.dor_old # exit latex $NAME.tex; ./process_resources.pl; cp $NAME.dor $NAME.dor_1; mv $NAME.dor $NAME.dor_old; mv $NAME.dor_out $NAME.dor # bibtex $NAME; makeindex $NAME; makeindex -o $NAME.aind $NAME.aidx latex $NAME.tex; ./process_resources.pl; mv $NAME.dor $NAME.dor_old; mv $NAME.dor_out $NAME.dor latex $NAME.tex; ./process_resources.pl; mv $NAME.dor $NAME.dor_old; mv $NAME.dor_out $NAME.dor dvips -o ${NAME}_A4.ps $NAME.dvi pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' ${NAME}_A4.ps ${NAME}_A5.ps rm -f $NAME.aind rm -f $NAME.ind rm -f $NAME.ilg rm -f $NAME.KUIP rm -f $NAME.aux rm -f $NAME.aidx rm -f $NAME.idx rm -f $NAME.lof rm -f $NAME.lot #rm -f $NAME.log rm -f $NAME.dvi rm -f $NAME.toc rm -f $NAME.blg rm -f $NAME.bbl rm -f texput.log rm -f missfont.log # # The following are specific to cpt_tasks.cls # # rm -f $NAME.dlv # deliverables file # rm -f $NAME.tsk # tasks file # rm -f $NAME.rsc # resources file