#!/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 latex $NAME.tex; process_resources.pl; mv $NAME.rsc $NAME.rsc_old; mv $NAME.rsc_out $NAME.rsc # bibtex $NAME; makeindex $NAME; makeindex -o $NAME.aind $NAME.aidx latex $NAME.tex; process_resources.pl; mv $NAME.rsc $NAME.rsc_old; mv $NAME.rsc_out $NAME.rsc latex $NAME.tex; process_resources.pl; mv $NAME.rsc $NAME.rsc_old; mv $NAME.rsc_out $NAME.rsc 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