-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·93 lines (88 loc) · 1.49 KB
/
build.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/sh
# Borrowed and modified from UT Austin's LaTeX Dissertation build files
RESUME=$1
rm -f $RESUME.aux \
$RESUME.bbl \
$RESUME.bcf \
$RESUME.run.xml \
$RESUME-nhblx.bib \
$RESUME.blg \
$RESUME.dvi \
$RESUME.idx \
$RESUME.ilg \
$RESUME.ind \
$RESUME.lof \
$RESUME.log \
$RESUME.lot \
$RESUME.ps \
$RESUME.spl \
$RESUME.out \
$RESUME.toc 2>/dev/null
# Clear the screen.
#
clear
# Run latex and bibtex to create the output file ($RESUME.dvi)
#
echo ""
echo " First run of latex ..."
echo ""
pdflatex $RESUME
exitcode="$?"
if test $exitcode -ne 0
then
exit 2
fi
echo ""
echo " Run of Biber ..."
echo ""
biber $RESUME
exitcode="$?"
if test $exitcode -ne 0
then
exit 3
fi
echo ""
echo " Second run of latex ..."
echo ""
pdflatex $RESUME
exitcode="$?"
if test $exitcode -ne 0
then
exit 4
fi
echo ""
echo " Third run of latex ..."
echo ""
pdflatex $RESUME
exitcode="$?"
if test $exitcode -ne 0
then
exit 5
fi
#echo ""
#echo " Fourth run of latex ..."
#echo ""
#pdflatex $RESUME 2>&1 | tee latexlog
#exitcode="$?"
# if test $exitcode -ne 0
# then
# exit 7
# fi
##echo ""
##echo " Fifth and last run of latex ..."
##echo ""
##pdflatex $RESUME 2>&1 | tee latexlog
##exitcode="$?"
## if test $exitcode -ne 0
## then
## exit 8
## fi
##echo ""
##echo " Sixth and extra run of latex just to make sure..."
##echo ""
##pdflatex $RESUME 2>&1 | tee latexlog
##exitcode="$?"
## if test $exitcode -ne 0
## then
## exit 8
## fi