2017-08-08 06:38:10 +02:00
|
|
|
#!/bin/bash -eu
|
|
|
|
|
2017-08-26 08:00:11 +02:00
|
|
|
: ${INTEGRATION:=true}
|
2017-08-22 06:09:42 +02:00
|
|
|
: ${CHECK:=false}
|
|
|
|
|
|
|
|
if [[ "$INTEGRATION" == "true" ]]; then
|
|
|
|
if uname -s | grep -q Linux; then
|
|
|
|
sudo modprobe fuse
|
|
|
|
elif uname -s | grep -q Darwin; then
|
|
|
|
brew cask install osxfuse
|
|
|
|
fi
|
2017-08-08 06:38:10 +02:00
|
|
|
fi
|
|
|
|
|
2017-08-22 06:09:42 +02:00
|
|
|
if [[ "$CHECK" == "true" ]]; then
|
|
|
|
if uname -s | grep -q Linux; then
|
|
|
|
wget https://cmake.org/files/v3.9/cmake-3.9.1-Linux-x86_64.tar.gz -O /tmp/cmake.tar.gz
|
|
|
|
tar -C /tmp/ -xf /tmp/cmake.tar.gz
|
2017-08-26 08:00:11 +02:00
|
|
|
mkdir /tmp/bin
|
|
|
|
ln -s $(ls -1 /tmp/cmake*/bin/cmake) /tmp/bin/
|
2017-08-22 06:09:42 +02:00
|
|
|
fi
|
2017-08-08 06:38:10 +02:00
|
|
|
fi
|
|
|
|
|
2017-08-22 06:09:42 +02:00
|
|
|
|