]> git.somenet.org - fsinf/pub/cheatsheet.git/blob - build.sh
update git url + remove mm.fsinf.at
[fsinf/pub/cheatsheet.git] / build.sh
1 #!/bin/bash
2 ./gitinfohook.sh
3 pdflatex main.tex
4 pdflatex out.tex
5 pdflatex out2.tex
6
7 grep '*{file}' main.dep | cut -d'{' -f3 | sed -e 's/}//g' -e 's#^#./#g' | sort | uniq > main.dep.tmp
8 (find ./images ./articles ./fillers -type f; cat main.dep.tmp main.dep.tmp) | sort | uniq -u > main.dep.unused
9 rm main.dep.tmp
10
11 echo -e "\n\n\n*** DONE ***\n"
12 echo "unused ./images ./articles ./fillers:"
13 cat main.dep.unused
14 echo ""