build-thesis.sh 560 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # Copyright (C) 2014-2020 by Thomas Auzinger <thomas@auzinger.name>
  3. # Replace the 'x' in the next line with the name of the thesis' main LaTeX document without the '.tex' extension
  4. SOURCE=x
  5. # Build the thesis document
  6. pdflatex $SOURCE
  7. bibtex $SOURCE
  8. pdflatex $SOURCE
  9. pdflatex $SOURCE
  10. makeindex -t $SOURCE.glg -s $SOURCE.ist -o $SOURCE.gls $SOURCE.glo
  11. makeindex -t $SOURCE.alg -s $SOURCE.ist -o $SOURCE.acr $SOURCE.acn
  12. makeindex -t $SOURCE.ilg -o $SOURCE.ind $SOURCE.idx
  13. pdflatex $SOURCE
  14. pdflatex $SOURCE
  15. echo
  16. echo
  17. echo Thesis document compiled.