#!/bin/bash cd "$(dirname "$0")" #git fetch --all #git reset --hard origin/master pdflatex -file-line-error -interaction nonstopmode -draftmode -shell-escape -jobname=Recipes main.tex pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname=Recipes main.tex rm Recipes.aux Recipes.out Recipes.log Recipes.toc mv Recipes.pdf /home/david/fileshare/.secret/