#!/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" #pwd foreach dir ( chapter1 chapter2 chapter3 chapter4 chapter5 chapter6 chapter7 chapter8 chapter9 chapter10 chapter11 appendixa appendixb appendixc appendixd ) #appendixe appendixf) cd ${dir} make distclean cd ../ cp -pfd ${dir}/*.tex build/. cp -pfd ${dir}/*.eps build/. end # echo "Copying Control Files to build" # cp -pvf CDR_master_v4.tex build/. cp -pvf standard_symbols.tex build/. cp -pvf halld.bib build/. cp -pvf collab.tex build/. # cd build echo "Running Latex on files" latex CDR_master_v4 echo "Running bibtex on files" bibtex CDR_master_v4 echo "Running Latex on files" latex CDR_master_v4 latex CDR_master_v4 latex CDR_master_v4 echo "Making Postscript FIles" dvips -o CDR_master_v4.ps CDR_master_v4 mv CDR_master_v4.ps ../. # cd ../ # pdflatex CDR_collab.tex # exit(0)