NAME=dissertation.tex
pdflatex $NAME
bibtex $NAME
makeglossaries dissertation
pdflatex $NAME
pdflatex $NAME
sh clean.sh

BASENAME=dissertation
NAME=dissertation.tex
pdflatex $NAME
bibtex $NAME
makeglossaries $BASENAME
pdflatex $NAME
pdflatex $NAME
sh clean.sh

Update the script to generate the document.
Update the script to generate the document.
