basalt/scripts/install_deps.sh

26 lines
612 B
Bash
Raw Normal View History

2019-04-14 21:07:42 +02:00
#!/bin/bash
##
## BSD 3-Clause License
##
## This file is part of the Basalt project.
## https://gitlab.com/VladyslavUsenko/basalt.git
##
## Copyright (c) 2019-2021, Vladyslav Usenko and Nikolaus Demmel.
## All rights reserved.
##
2019-04-14 21:07:42 +02:00
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [[ "$OSTYPE" == "darwin"* ]]; then
${DIR}/install_mac_os_deps.sh
else
2021-10-31 15:15:28 +01:00
DISTRO=$( awk -F= '/^ID/{print $2}' /etc/os-release )
if [ "$DISTRO" == "fedora" ]; then
${DIR}/install_fedora_deps.sh
2022-10-09 22:02:07 +02:00
elif [ "$DISTRO" == "arch" ]; then
${DIR}/install_arch_deps.sh
2021-10-31 15:15:28 +01:00
else
${DIR}/install_ubuntu_deps.sh
fi
2019-04-14 21:07:42 +02:00
fi