cours-m1-eea/compile.sh
Pierre-antoine Comby 9d84f17191 test
2019-03-12 12:04:21 +01:00

14 lines
439 B
Bash
Executable file

#!/bin/bash
# Pour compiler tous les fichiers sources du dépot:
find . -name "main.tex" -execdir sh -c "pwd && latexmk {} -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/' -quiet | grep 'Latexmk'" \;
mkdir "public"
for i in `find . -maxdepth 1 -type d -regex \.\/[0-9].*?`;do
cp $i/Cours/main.pdf ./public/${i:2}.pdf;
done;
#clean up :
shopt -s globstar
#rm -f **/*.aux **/*.log **/*.out
#**/*.fls **/*.fdb_latexmk **/*.toc