forked from chronaeon/beigepaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biber-n-build.sh
executable file
·27 lines (23 loc) · 1.06 KB
/
biber-n-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
#!/bin/bash
# Biber-N-Build, Version 3
# Warning:
# -------
# This build script requires the installation of biber, pdflatex, and the full texlive library on an Ubuntu or Debian based system to work. Most likely it can be built using the same packages on other systems, but such a build is presently untested.
mv beigepaper.tex foopaper.bar # Temporarily rename the source file.
rm beigepaper* # Remove the previously built files.
mv foopaper.bar beigepaper.tex # Rename the source file.
pdflatex beigepaper.tex # 1st build from source.
biber beigepaper # Generate bibliography.
pdflatex beigepaper.tex # 2nd build from source w/ bibliography.
makeindex beigepaper.idx # Generate index.
pdflatex beigepaper.tex # 3rd build from source w/ bibliography and index.
clear
if [ -e "beigepaper.pdf" ] # Does beigepaper.pdf exist in this directory?
then
echo "Document successfully built from LaTeX source."
sleep 1.25
xdg-open beigepaper.pdf
else
echo "Document build failed. Check write access and dependencies."
fi
exit