Commit c744c27f authored by Leander Schulten's avatar Leander Schulten
Browse files

Add script to install or update boost on macOs and Windows. See #51

parent aeb5f59d
Pipeline #184941 passed with stage
in 2 minutes and 14 seconds
if [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX
echo "You are on macOS. Check if brew is installed..."
if ! [ -x "$(command -v brew)" ]; then
echo 'Error: you need brew to install boost. See' >&2
exit 1
if [[ -z "$(brew ls --versions boost)" ]]; then
echo "Installing boost..."
brew install boost
echo "Updating boost..."
brew upgrade boost
if [[ -z "$(brew ls --versions boost-build)" ]]; then
echo "Installing boost-build..."
brew install boost-build
echo "Updating boost-build..."
brew upgrade boost-build
echo "Boost installation complete"
elif [[ "$OSTYPE" == "msys" ]]; then
# windows
echo "You are on Windows"
if [! -d "$GIT_DIR" ]; then
echo "We have to clone the repo, this will take approximately 6.5 minutes"
git clone --depth 1 --shallow-submodules --recurse-submodules "$GIT_DIR"
cd "$GIT_DIR"
echo "Init the build"
cd "$GIT_DIR"
git pull
echo "Build boost, this will take approximately 3 minutes, if boost is not already build."
./b2.exe --prefix=../ --layout=tagged --with-coroutine --with-context toolset=gcc link=shared threading=multi runtime-link=shared address-model=64 install
echo "Boost build is finished"
# linux?
echo "You are on Linux"
echo "Linux is currently not supported (no mashine to test). You must install boost yourself. Maybe look at the windows version in this file." >&2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment