-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·30 lines (24 loc) · 814 Bytes
/
build.sh
File metadata and controls
executable file
·30 lines (24 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#Prüfe das Vorhandensein der notwendigen Programme
if [ `whereis pdflatex | grep / | wc -l` -eq 0 ]; then
echo "pdflatex wurde nicht gefunden"
exit 1
fi
if [ `whereis bibtex | grep / | wc -l` -eq 0 ]; then
echo "bibtex wurde nicht gefunden"
exit 1
fi
if [ `whereis makeindex | grep / | wc -l` -eq 0 ]; then
echo "makeindex wurde nicht gefunden"
exit 1
fi
#Erste Erstellung von Verzeichnissen und Dateien mit Verweisen, vor allem die "diplom.aux" Datei
pdflatex diplom.tex -output-format=pdf
#Erstellen des Literaturverzeichnisses
bibtex diplom.aux
#Erstellen des Abkürzungsverzeichnisses
makeglossaries diplom
#Erstellen des Inhaltsverzeichnisses
pdflatex diplom.tex -output-format=pdf
#Einbinden des Inhaltsverzeichnisses
pdflatex diplom.tex -output-format=pdf