mirror of
https://github.com/NullHypothesis/censorbib.git
synced 2025-07-23 14:41:07 -04:00
Add Makefile to test references.
We test by simply running biber over our references.bib.
This commit is contained in:
parent
ca8f3a7401
commit
5e2b010508
1 changed files with 19 additions and 0 deletions
19
Makefile
Normal file
19
Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
define LATEX_CODE
|
||||
\\documentclass{article}
|
||||
\\usepackage[top=2cm,bottom=2.5cm,left=2cm,right=2cm]{geometry}
|
||||
\\usepackage[backend=biber]{biblatex}
|
||||
\\addbibresource{references.bib}
|
||||
\\begin{document}
|
||||
\\nocite{*}
|
||||
\\printbibliography
|
||||
\\end{document}
|
||||
endef
|
||||
|
||||
export LATEX_CODE
|
||||
|
||||
test:
|
||||
TMP_FILE=$$(mktemp "censorbib-tmp-XXXXXXX.tex") ;\
|
||||
echo "$$LATEX_CODE" > "$$TMP_FILE" ;\
|
||||
pdflatex --interaction=batchmode "$${TMP_FILE%.tex}" ;\
|
||||
biber "$${TMP_FILE%.tex}" ;\
|
||||
rm "$${TMP_FILE%.tex}"* ;
|
Loading…
Add table
Add a link
Reference in a new issue