compile.sh 415 Bytes
Newer Older
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
1
#!/bin/bash
2 3 4

# Pour compiler tous les fichiers sources du dépot:

Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
5
find . -name "main.tex" -execdir sh -c "pwd && latexmk {}  -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/'"  \;
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
6

Pierre-antoine Comby's avatar
test  
Pierre-antoine Comby committed
7 8 9 10
mkdir "public"
for i in `find . -maxdepth 1 -type d -regex \.\/[0-9].*?`;do
    cp $i/Cours/main.pdf ./public/${i:2}.pdf;
done;
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
11
#clean up :
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
12
shopt -s globstar
Pierre-antoine Comby's avatar
test  
Pierre-antoine Comby committed
13
#rm -f **/*.aux **/*.log **/*.out
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
14
#**/*.fls **/*.fdb_latexmk **/*.toc