| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
wd=`pwd` |
| 4 |
|
| 5 |
extarget="example" #- set the example folder name |
| 6 |
|
| 7 |
#-- prepare scripts for building example |
| 8 |
mkdir $extarget #- create the folder |
| 9 |
|
| 10 |
#-- generate the program session files |
| 11 |
perl generateswitch.pl<exprogram.csv |
| 12 |
|
| 13 |
mv ex*.* $extarget/ #- move all other example files into proper folder |
| 14 |
mv buildproc* $extarget/ #- move scripts into it |
| 15 |
mv buildcppdfpapers* $extarget/ |
| 16 |
mv buildpapers* $extarget/ |
| 17 |
mv countnbpages.sh $extarget/ |
| 18 |
mv generateswitch.pl $extarget/ |
| 19 |
mv papersinfo.sh $extarget/ |
| 20 |
mv paperssplitpreamble.sh $extarget/ |
| 21 |
mv removeLaTeXcmds.sh $extarget/ |
| 22 |
|
| 23 |
cp -r pictures $extarget/ #- copy pictures into it |
| 24 |
cp -r papers $extarget/ #- copy papers into it |
| 25 |
cp confproc.cls $extarget/ #- copy the class into it |
| 26 |
cp confproc*.ist $extarget/ #- copy the index style into it |
| 27 |
cp newapave* $extarget/ #- copy the newapave bib style files |
| 28 |
|
| 29 |
#-- prepare building scripts and generate needed directories |
| 30 |
cd $wd/$extarget |
| 31 |
mkdir pdftk_info/ |
| 32 |
mv expages.tex papers/ |
| 33 |
|
| 34 |
cd $wd/$extarget |
| 35 |
chmod +x buildproc* |
| 36 |
chmod +x generateswitch.pl |
| 37 |
chmod +x exportIndividualPDFs.sh |
| 38 |
chmod +x papersinfo.sh |
| 39 |
chmod +x paperssplitpreamble.sh |
| 40 |
cd .. |
| 41 |
|
| 42 |
#-- build example |
| 43 |
cd $wd/$extarget |
| 44 |
#./buildproc.sh |