diff options
-rw-r--r-- | Makefile | 15 | ||||
-rw-r--r-- | README.md | 5 |
2 files changed, 20 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 @@ -11,3 +11,8 @@ A particular bibliography in BibTeX format. * If not, move to a broader theme (something about "philosophy of gardening" goes to "philosophy" if there is no "gardening" theme available). + +## Testing + + sudo apt install make biber pybtex + make lint |