summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/confproc/buildcls
blob: c5363759372b7f771db74f56dcf4c2569f7aa3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/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