]> git.somenet.org - pub/jan/netsec2.git/blob - report/build.sh
Stop hiding latex/build-errors. Also readded unused info and added easteregg image.
[pub/jan/netsec2.git] / report / build.sh
1 #!/bin/bash
2 ./gitinfohook.sh
3 pdflatex -halt-on-error main.tex || { echo -e "\n\n\n*** BUILD FAILED ***\n"; exit 2; }
4
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
7 rm main.dep.tmp
8
9 echo -e "\n\n\n*** BUILD DONE ***\n"
10 echo "unused ./content:"
11 cat main.dep.unused
12 echo ""
13