• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3# Usage:
4# LLVM_OS: LLVM OS release to obtain clang binaries. Only needed for clang install.
5# LLVM_VER: The LLVM toolset version to point the repo at.
6# PACKAGES: Compiler packages to install.
7
8set -e
9echo ">>>>>"
10echo ">>>>> APT: REPO.."
11echo ">>>>>"
12sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
13if test -n "${LLVM_OS}" -a -n "${LLVM_VER}" ; then
14	wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
15	sudo -E apt-add-repository "deb http://apt.llvm.org/${LLVM_OS}/ llvm-toolchain-${LLVM_OS}-${LLVM_VER} main"
16fi
17echo ">>>>>"
18echo ">>>>> APT: UPDATE.."
19echo ">>>>>"
20sudo -E apt-get -o Acquire::Retries=3 update
21echo ">>>>>"
22echo ">>>>> APT: INSTALL ${PACKAGES}.."
23echo ">>>>>"
24sudo -E apt-get -o Acquire::Retries=3 -yq --no-install-suggests --no-install-recommends install ${PACKAGES}
25
26# Use, modification, and distribution are
27# subject to the Boost Software License, Version 1.0. (See accompanying
28# file LICENSE.txt)
29#
30# Copyright Rene Rivera 2020.
31