Commit 9a8c69f1 authored by marmous's avatar marmous

Improve generation script

parent bc92a905
#!/bin/sh
#!/bin/bash
clean(){
#./latexdockercmd.sh latexmk -c #commented because it delete log file
rm *.xmp* *.mtc* *.aux *.fdb* *.fls *.idx *.ilg *.ind *.lof *.lot *.maf *.out *.toc *.run.xml *.bib *.bbl .MemoireYC2021.* pagegarde/*.aux
}
cleanlog(){
rm *.log *.blg
}
# to generate the PDF
# ./latexdockercmd.sh pdflatex main_template.tex
......@@ -6,6 +15,13 @@
./latexdockercmd.sh latexmk -cd -f -interaction=batchmode -pdf MemoireYC2021.tex
# to clean up generation files
#./latexdockercmd.sh latexmk -c
if [ "$1" = "clean" ]; then
clean
fi
# delete log and files
if [ "$1" = "cleanall" ]; then
clean
cleanlog
fi
rm *.xmp* *.mtc* *.aux *.fdb* *.fls *.idx *.ilg *.ind *.lof *.lot *.maf *.out *.toc
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment