#!/bin/bash

# This bash script automates getting the required build tools (apt install)

# set the bash environment variable 'UNATTENDED' to '--assume-yes' for 
# unattended use (for example in the .travis.yml script)

echo ""
echo "-------------------------------------------------------------------"
echo "INSTALLING Build Tools (using APT)"
echo "  (UNATTENDED: [$UNATTENDED])"
echo "-------------------------------------------------------------------"
echo ""

set -ev

sudo apt-get update
sudo apt-get $UNATTENDED install \
  aptitude                       \
  git                            \
  pkg-config                     \
  ruby                           \
  autoconf                       \
  libtool                        \
  cmake                          \
  make                           \
  gcc                            \
  g++                            \
  dpkg                           \
  dpkg-dev                       \
  gettext                        \
  openjdk-8-jre-headless         \
  jq                             \
  tree

