summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/confproc/prepareexample.sh
blob: 5472c1e415f83fd12f848ffd95617cb67a2b3d0e (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
#!/bin/sh

wd=`pwd`

extarget="example" #- set the example folder name

#-- prepare scripts for building example
mkdir $extarget #- create the folder

#-- generate the program session files
perl generateswitch.pl<exprogram.csv

mv ex*.* $extarget/ #- move all other example files into proper folder
mv buildproc* $extarget/ #- move scripts into it
mv buildcppdfpapers* $extarget/
mv buildpapers* $extarget/
mv countnbpages.sh $extarget/
mv generateswitch.pl $extarget/
mv papersinfo.sh $extarget/
mv paperssplitpreamble.sh $extarget/
mv removeLaTeXcmds.sh $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

#-- prepare building scripts and generate needed directories
cd $wd/$extarget
mkdir pdftk_info/
mv expages.tex papers/

cd $wd/$extarget
chmod +x buildproc*
chmod +x generateswitch.pl
chmod +x exportIndividualPDFs.sh
chmod +x papersinfo.sh
chmod +x paperssplitpreamble.sh
cd ..

#-- build example
cd $wd/$extarget
#./buildproc.sh