diff options
-rw-r--r-- | Makefile | 3 | ||||
-rwxr-xr-x | bin/provision | 25 |
2 files changed, 28 insertions, 0 deletions
@@ -14,5 +14,8 @@ lint_pybtex: @pybtex-convert _lint_pybtext.bib _lint_pybtext.yaml @rm -f _lint_pybtext.bib _lint_pybtext.yaml +tidy: + @bibtex-tidy -m *.bib + yaml: @./bin/biblio-yml > _biblio.yml diff --git a/bin/provision b/bin/provision new file mode 100755 index 0000000..eac3fc0 --- /dev/null +++ b/bin/provision @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Provisioner +# + +# Dependencies +DIRNAME="`dirname $0`" +DEPENDENCIES="make" +DEPENDENCIES="$DEPENDENCIES biber pybtex npm" + +# Check for sudo +if [ "`whoami`" != "root" ]; then + SUDO="sudo" +fi + +# Ensure an up-to-date system +$SUDO apt-get update && $SUDO apt-get dist-upgrade -y && \ + $SUDO apt-get autoremove -y && $SUDO apt-get clean + +# Install dependencies +$SUDO apt install -y $DEPENDENCIES + +# Install bibtex-tidy +# https://github.com/FlamingTempura/bibtex-tidy +$SUDO npm install -g bibtex-tidy |