2019-04-14 21:07:42 +02:00
|
|
|
#!/bin/bash
|
2021-10-15 14:50:02 +02:00
|
|
|
##
|
|
|
|
## 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
|
|
|
|
else
|
|
|
|
${DIR}/install_ubuntu_deps.sh
|
|
|
|
fi
|
2019-04-14 21:07:42 +02:00
|
|
|
fi
|