#!/bin/bash cd "$(dirname "$0")" # these are so that later it can be edited through the web on gitea and automagically recompile without having to run anything on the webserver manually. #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 pdfbook2 Recipes.pdf rm *.aux *.out *.log *.toc mv Recipes.pdf /home/david/fileshare/LaTeX/Recipes mv Recipes-book.pdf /home/david/fileshare/LaTeX/Recipes/Recipes-booklet.pdf