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