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