diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-08-03 23:23:59 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-08-03 23:23:59 -0300 |
commit | aaf95b2b9d336dde4f590f0c85fcb2ead35c5c26 (patch) | |
tree | 8204a8e556836a9f73750ade61f13201f8bf11eb /bin | |
parent | ba735458b5f70132b1e8cf482d25106454c91eaa (diff) | |
download | biblio-aaf95b2b9d336dde4f590f0c85fcb2ead35c5c26.tar.gz biblio-aaf95b2b9d336dde4f590f0c85fcb2ead35c5c26.tar.bz2 |
Feat: provision script and tidy action
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/provision | 25 |
1 files changed, 25 insertions, 0 deletions
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 |