forked from jasder/antlr
28 lines
816 B
Bash
Executable File
28 lines
816 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
thisdir=$(dirname "$0")
|
|
|
|
# pre-requisites for dotnet core
|
|
brew update
|
|
brew install openssl
|
|
mkdir -p /usr/local/lib
|
|
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
|
|
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
|
|
|
|
# download dotnet core
|
|
curl https://download.microsoft.com/download/8/F/9/8F9659B9-E628-4D1A-B6BF-C3004C8C954B/dotnet-1.1.1-sdk-osx-x64.pkg -o /tmp/dotnet-1.1.1-sdk-osx-x64.pkg
|
|
|
|
# install dotnet core
|
|
sudo installer -pkg /tmp/dotnet-1.1.1-sdk-osx-x64.pkg -target /
|
|
|
|
# make the link
|
|
ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/
|
|
|
|
# Work around apparent rvm bug that is in Travis's Xcode image.
|
|
# https://github.com/direnv/direnv/issues/210
|
|
# https://github.com/travis-ci/travis-ci/issues/6307
|
|
shell_session_update() { :; }
|
|
|