~skiqqy/bin

ref: e187890d770145f93f1239f3a4d13d4770141c0e bin/texbib -rwxr-xr-x 502 bytes
e187890dStephen Cochrane Changed echo to no op 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
[[ -z $1 ]] && echo -e "Usage: texbib <file>\n* Example,\n  * texbib file\n  * Will generate "file.pdf" from file.tex and look for references in file.bib (if it exists)" && exit 1
[[ ! -f $1.tex ]] && echo "ERROR: \"$1.tex\" not found." && exit 1
pdflatex $1.tex && biber $1; pdflatex $1.tex && pdflatex $1.tex
rm -f *.aux
rm -f *.bbl
rm -f *.bcf
rm -f *.blg
rm -f *.log
rm -f *.xml
rm -f *.nav
rm -f *.out
rm -f *.snm
rm -f *.toc
[[ ! -f $1.bib ]] && echo  "WARNING: no \"$1.bib\" found."