compile.sh 310 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/' -quiet | grep 'Latexmk'"  \;
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
6

Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
7
#clean up :
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
8
shopt -s globstar
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
9 10
rm -f **/*.aux **/*.log **/*.out
#**/*.fls **/*.fdb_latexmk **/*.toc