diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bf17bd7 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +# +# Makefile with common procedures for managing a BibTeX repository. +# + +lint: lint_biber lint_pybtex + +# Thanks https://tex.stackexchange.com/questions/173621/how-to-validate-check-a-biblatex-bib-file#173622 +lint_biber: + @find -name '*.bib' -exec biber --tool -V {} \; + @rm -f *.bibertool* *.blg* _bibertool.bib + +lint_pybtex: + @cat *.bib > _lint_pybtext.bib + @pybtex-convert _lint_pybtext.bib _lint_pybtext.yaml + @rm -f _lint_pybtext.bib _lint_pybtext.yaml |