#!/bin/bash cd "$(dirname "$0")" git pull /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=David David/Main.tex rm David.aux David.out cp David.pdf /home/david/fileshare/LaTeX/WoD/ /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Jake Jake/Main.tex rm Jake.aux Jake.out cp Jake.pdf /home/david/fileshare/LaTeX/WoD/ /usr/bin/pdflatex -file-line-error -interaction nonstopmode -jobname=Joe Joe/Main.tex rm Joe.aux Joe.out cp Joe.pdf /home/david/fileshare/LaTeX/WoD/