2019-10-29 13:48:27 +01:00
|
|
|
#!/usr/bin/env bash
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-28 11:19:48 +01:00
|
|
|
install_packages() {
|
2019-10-10 10:46:11 +02:00
|
|
|
declare -A osInfo;
|
2019-10-28 11:19:48 +01:00
|
|
|
osInfo[/usr/bin/pacman]=pacman
|
|
|
|
osInfo[/usr/bin/apt]=apt
|
|
|
|
osInfo[/usr/local/Homebrew]=brew
|
2019-10-10 10:46:11 +02:00
|
|
|
|
|
|
|
for f in ${!osInfo[@]}
|
|
|
|
do
|
|
|
|
if [[ -f $f ]];then
|
2019-10-28 11:19:48 +01:00
|
|
|
if [[ ${osInfo[$f]} == 'pacman' ]]; then
|
2019-10-29 13:48:27 +01:00
|
|
|
sudo pacman -S clang make cmake fltk catch2
|
2019-10-28 11:19:48 +01:00
|
|
|
|
|
|
|
elif [[ ${osInfo[$f]} == 'apt' ]]; then
|
2019-10-29 13:48:27 +01:00
|
|
|
sudo apt install clang make cmake clang-tidy libfltk1.3 libfltk1.3-dev
|
2019-10-28 11:19:48 +01:00
|
|
|
|
|
|
|
git clone https://github.com/catchorg/Catch2.git
|
|
|
|
cd Catch2
|
|
|
|
cmake -Bbuild -H. -DBUILD_TESTING=OFF
|
|
|
|
sudo cmake --build build/ --target install
|
2019-10-29 15:12:04 +01:00
|
|
|
cd ..
|
2019-10-28 11:19:48 +01:00
|
|
|
|
|
|
|
elif [[ ${osInfo[$f]} == 'brew' ]]; then
|
2019-10-29 13:48:27 +01:00
|
|
|
sudo brew install llvm clang make cmake clang-format fltk catch2
|
2019-10-28 11:19:48 +01:00
|
|
|
|
2019-10-10 10:46:11 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-10-28 11:19:48 +01:00
|
|
|
install_packages
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
echo "cloning repositories"
|
|
|
|
cd ..
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/library.git
|
|
|
|
mkdir library/build
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/shared-memory.git
|
|
|
|
mkdir shared-memory/build
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/text-renderer.git
|
|
|
|
mkdir text-renderer/build
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/gui.git
|
|
|
|
mkdir gui/build
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/terminal.git
|
|
|
|
mkdir terminal/build
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/simple-draw.git
|
|
|
|
mkdir simple-draw/build
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/demo.git
|
|
|
|
mkdir demo/build
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 14:19:00 +02:00
|
|
|
cd installation
|
2019-10-10 10:46:11 +02:00
|
|
|
|
2019-10-23 13:28:52 +02:00
|
|
|
echo "installation completed"
|
2019-10-29 13:48:27 +01:00
|
|
|
./build.sh
|