Commit 0d626422 authored by Olivier's avatar Olivier
Browse files

M3: also compile solutions

parent 797d149c
......@@ -34,9 +34,32 @@ for assignmentfile in assignment*.tex; do
mv -vf *.aux *.bbl *.bcf *.blg *.ilg *.log *.nav *.nlo *.nls *.run.xml *.snm *.toc *.out *.fls *.fdb_latexmk *.spl *-blx.bib *-eps-converted-to.pdf *bib.bak tmp/
done
for solutionfile in graded_solution*.tex; do
echo "#"
echo "#"
echo "building solution PDF for $solutionfile …"
# Empty up the tmp subfolder, if it exists
rm -rvf tmp/*
# Make a tmp folder
mkdir -pv tmp
# Compile the actual PDF file:
pdflatex $solutionfile
pdflatex $solutionfile
# Cleanup after pdflatex: move temporary files to tmp subfolder
mv -vf *.aux *.bbl *.bcf *.blg *.ilg *.log *.nav *.nlo *.nls *.run.xml *.snm *.toc *.out *.fls *.fdb_latexmk *.spl *-blx.bib *-eps-converted-to.pdf *bib.bak tmp/
done
cd ../
# Remove tex files from output folder
# Remove tex and tmp files/folders from output folder
rm -vf $outputfolder/*.tex
rm -vf $outputfolder/*.png
rm -vrf $outputfolder/tmp
echo "end of script."
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