From 7654c1f57705c5f5b0af25a4af308b7c689d5630 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Thu, 10 Oct 2019 10:46:11 +0200 Subject: [PATCH] first commit --- install.sh | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..0a86ba3 --- /dev/null +++ b/install.sh @@ -0,0 +1,81 @@ +#!/usr/bin/env bash + +# installing package, $1 = pacman; $2 = apt-get +install() { + declare -A osInfo; + osInfo[/etc/arch-release]=pacman + osInfo[/etc/debian_version]=apt-get + + for f in ${!osInfo[@]} + do + if [[ -f $f ]];then + manager = ${osInfo[$f]} + if [[manager == 'pacman']] then + pacman -S $1 + elif [[ manager == 'apt-get' ]]; then + apt-get install $2 + fi + fi + done +} + +# check operating system + + +os = 'unknown' +case "$(uname -s)" in + Darwin) + os = 'mac' + ;; + + Linux) + echo 'Linux' + ;; + + CYGWIN*|MINGW*|MSYS*) + os = 'windows' + ;; + + # Add here more strings to compare + # See correspondence table at the bottom of this answer + + *) + echo 'other OS' + ;; +esac + +echo $os + +# install git + +install 'git' 'git' + +# install g++/clang + +install 'g++' 'g++' + +# install make + +install 'make' 'make' + +# install cmake + +install 'cmake' 'cmake' + +# install fltk + +install 'fltk-dev' 'libfltk1.3 libfltk1.3-dev' + +# install catch2 + +install 'catch2' 'catch' + +# clone rendering + +git clone https://gitea.joethei.xyz/vKVM/Rendering.git + +# clone library + +git clone https://gitea.joethei.xyz/vKVM/Library.git + +# clone clients