#!/bin/tcsh # if ( -d build == 0 ) then echo "Making the build directory" mkdir build else echo "Cleaning out the build directory" cd build rm -f * cd ../ endif # echo "Copying content and figure files" # foreach dir ( chapter1 chapter2 chapter3 chapter4 chapter5 chapter6 chapter7 chapter8 chapter9 chapter10 chapter11 appendixa appendixb appendixc) cp -p ${dir}/*.tex build/. cp -p ${dir}/*.eps build/. end # echo "Copying Control Files to build" # cp -pv CDR_master_v3.tex build/. cp -pv standard_symbols.tex build/. cp -pv halld.bib build/. cp -pv collab.tex build/. # cd build echo "Running Latex on files" latex CDR_master_v3 echo "Running bibtex on files" bibtex CDR_master_v3 echo "Running Latex on files" latex CDR_master_v3 latex CDR_master_v3 latex CDR_master_v3 echo "Making Postscript FIles" dvips CDR_master_v3 mv CDR_master_v3.ps ../. # cd ../ # exit(0)