+ --with-toolchain cases for homebrew

+ dev switch
This commit is contained in:
Johannes Theiner 2019-11-05 19:59:35 +00:00
parent ceed96b0d7
commit b4dbd63135
2 changed files with 48 additions and 19 deletions

View File

@ -22,23 +22,23 @@ run this once in a empty directory.
```sh ```sh
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/installation.git git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/installation.git
cd installation cd installation
./install.sh install.sh
``` ```
**update all subprojects** **update all subprojects**
```sh ```sh
./update.sh update.sh
``` ```
**checkout development versions** **checkout development versions**
```sh ```sh
./checkout-dev.sh checkout-dev.sh
``` ```
**build all projects** **build all projects**
```sh ```sh
./build.sh build.sh
``` ```

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
development = false
install_packages() { install_packages() {
if [[ -f /usr/bin/pacman ]]; then if [[ -f /usr/bin/pacman ]]; then
sudo pacman -S clang make cmake fltk catch2 sudo pacman -S clang make cmake fltk catch2
@ -14,38 +16,65 @@ install_packages() {
cd .. cd ..
elif [[ -f /usr/local/Homebrew ]]; then elif [[ -f /usr/local/Homebrew ]]; then
sudo brew install llvm clang make cmake clang-format fltk catch2 sudo brew install clang make cmake fltk catch2
#some systems have --with-toolchain some dont, so we need to do this
if ! sudo brew install llvm --with-toolchain; then
sudo brew install llvm
elif
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"
fi fi
} }
while [ -n "$1" ]; do
case "$1" in
-dev) development = true ;;
*) echo "Option $1 not recognized" ;;
esac
shift
done
install_packages install_packages
echo "cloning repositories" echo "cloning repositories"
cd .. cd ..
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/library.git if [ $development ]; then
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/library.git
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/shared-memory.git
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/text-renderer.git
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/gui.git
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/terminal.git
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/simple-draw.git
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/demo.git
elif
git clone https://gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/library.git
git clone https://gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/shared-memory.git
git clone https://gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/text-renderer.git
git clone https://gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/gui.git
git clone https://gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/terminal.git
git clone https://gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/simple-draw.git
git clone https://gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/demo.git
fi
mkdir library/build mkdir library/build
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/shared-memory.git
mkdir shared-memory/build mkdir shared-memory/build
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/text-renderer.git
mkdir text-renderer/build mkdir text-renderer/build
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/gui.git
mkdir gui/build mkdir gui/build
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/terminal.git
mkdir terminal/build mkdir terminal/build
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/simple-draw.git
mkdir simple-draw/build mkdir simple-draw/build
git clone ssh://git@gitlab.repo.digitech.hs-emden-leer.de:2222/link/projekte/ws19/vkvm-new/demo.git
mkdir demo/build mkdir demo/build
cd installation cd installation
echo "installation completed" echo "installation completed"