Debian Codegraph @

texmf-dist/doc/latex/confproc/buildcls.sh

raw
1 #!/bin/sh
2
3 wd=`pwd`
4
5 #-- set path to LaTeX binaries
6 LaPath="/usr/texbin/" # TeXLive
7
8 #-- set names of LaTeX and related compilers
9 Latex=$LaPath"pdflatex"
10 Index=$LaPath"makeindex"
11 Target="confproc" #- set document's name
12 extarget="example/" #- set the example folder name
13
14 #-- build doc, class and example files
15 $Latex $Target.dtx #- build doc. and .ins file
16 $Latex $Target.ins #- build class and example files
17
18 #-- HACK: rename newapave2.sty
19 mv newapave2.sty newapave.sty
20
21 cd $wd/
22 #-- finish to build the documentation
23 $Latex $Target.dtx #- re-run doc for toc update
24 $Latex $Target.dtx #- re-run doc for proper back-references
25 $Index -s gind.ist $Target #- with \CodelineIndex of \PageIndex
26 $Index -s gglo.ist -o $Target.gls $Target.glo #- with \RecordChanges
27 $Latex $Target.dtx #- insert index & list of changes, re-number
28 $Latex $Target.dtx #- last run with proper page numbers
29
30 #-- prepare scripts for cleaning package
31 cd $wd
32 chmod +x cleancls.sh
33
34 #-- prepare scripts for building example
35 chmod +x prepareexample.sh
36 ./prepareexample.sh
37
38 #-- build example
39 cd $extarget
40 #./buildproc.sh