update presentation, the body is there
[msc-thesis1617.git] / build
diff --git a/build b/build
index 685e33f..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