aboutsummaryrefslogtreecommitdiff
path: root/bin/provision
blob: eac3fc072074dfe15a9ccdc8f765d1631e6b573a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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