Merge branch 'master' of git.martlubbers.net:msc-thesis1617
[msc-thesis1617.git] / build
diff --git a/build b/build
index 35b62ec..de903fe 100755 (executable)
--- a/build
+++ b/build
@@ -15,6 +15,16 @@ deps(){
                while read l; do deps "$l"; done
 }
 
+graphicdeps(){
+       grep -Pzo '\\includegraphics[%\t\n ]*(\[.*\])?[%\t\n ]*\{.*?\}' $1 |\
+               tr '\0' '\n' | grep -Po '(?<=\{).*?(?=\})' |\
+               while read l; do echo "$2/$l"; done
+}
+
+graphicspath(){
+       :
+}
+
 recompile(){
        for dep in $(deps "$1"); do
                if [ "$dep" -nt "$2" ]; then
@@ -84,7 +94,7 @@ clean(){
        while [ $# -ne 0 ]; do 
                log "Clean $1"
                rm -fv $1.{acn,acr,alg,aux,bbl,blg,idl,idx,ilg,ind,fmt,glg,glo,gls,\
-ist,loa,lof,log,lol,lot,nav,out,pdf,snm,tdo,toc}
+ist,loa,lof,log,lol,lot,nav,out,pdf,snm,tdo,toc,vrb}
                shift
        done
 }