#!/bin/sh #-- set path to LaTeX binaries LaPath="/usr/texbin/" #- TexLive 2007 #LaPath="/usr/local/teTeX/bin/i386-apple-darwin-current/" #- teTeX #-- set names of LaTeX and related compilers Latex=$LaPath"pdflatex" Index=$LaPath"makeindex" Target="confproc" #- set document's name extarget="example" #- se tthe example folder name #-- build doc, class and example files $Latex $Target.dtx #- build doc. and .ins file $Latex $Target.ins #- build class and example files #-- prepare scripts for building example #rm -rf $extarget mkdir $extarget #- create the folder mv ex*.* $extarget/ #move all example files into it mv buildproc.tex $extarget/buildproc # move scripts into it mv buildcppdfpapers.tex $extarget/buildcppdfpapers mv buildpapers.tex $extarget/buildpapers mv procswitchandtoc.pl $extarget/ cp -r pictures $extarget/ #- copy pictures into it cp -r papers $extarget/ #- copy papers into it cp confproc.cls $extarget/ #- copy the class into it cp confproc.ist $extarget/ #- copy the index style into it cp newapave.* $extarget/ #- copy the newapave bib style files cd $extarget chmod +x buildproc chmod +x procswitchandtoc.pl mkdir papers mv expages.tex papers/ cd .. #-- finish to build the documentation $Latex $Target.dtx #- re-run doc for toc update $Latex $Target.dtx #- re-run doc for proper back-references $Index -s gind.ist $Target #- with \CodelineIndex of \PageIndex $Index -s gglo.ist -o $Target.gls $Target.glo #- with \RecordChanges $Latex $Target.dtx #- insert index & list of changes, re-number $Latex $Target.dtx #- last run with proper page numbers #-- prepare scripts for cleaning package mv cleancls.tex cleancls chmod +x cleancls #-- build example cd $extarget ./buildproc