3 pdflatex -halt-on-error main.tex || { echo -e "\n\n\n*** BUILD FAILED ***\n"; exit 2; }
5 grep '*{file}' main.dep | cut -d'{' -f3 | sed -e 's/}//g' -e 's#^#./#g' | sort | uniq > main.dep.tmp
6 (find ./content -type f; cat main.dep.tmp main.dep.tmp) | sort | uniq -u > main.dep.unused
9 echo -e "\n\n\n*** BUILD DONE ***\n"
10 echo "unused ./content:"