Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
101 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p ../../Binaries/mono_build | ||
cd ../../Binaries/mono_build | ||
|
||
sudo apt-get install git autoconf libtool automake build-essential mono-devel gettext cmake | ||
|
||
PREFIX=$PWD/mono | ||
VERSION=5.8.0.88 | ||
curl https://download.mono-project.com/sources/mono/mono-${VERSION}.tar.bz2 | tar xj | ||
pushd mono-$VERSION | ||
./configure --prefix=$PREFIX | ||
make | ||
make install | ||
popd | ||
tar czf mono-${VERSION}.tar.gz mono |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
# Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
# Source this script to ensure mono is installed and on the path. | ||
|
||
# This is a function to keep variable assignments out of the parent script (that is sourcing this file) | ||
install_mono () { | ||
# Download and install `mono` locally | ||
local THIS_DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
source "${THIS_DIR}"/build-utils.sh | ||
|
||
local MONO_VERSION="$(get_tool_version mono)" | ||
# the tar file has `mono` as the root directory | ||
local MONO_PATH="${THIS_DIR}"/../../Binaries/Tools | ||
|
||
if [[ ! -x "${MONO_PATH}/mono/bin/mono" ]] | ||
then | ||
echo "Downloading mono ${MONO_VERSION}" | ||
mkdir -p "${MONO_PATH}" | ||
curl -L https://roslyninfra.blob.core.windows.net/jenkins/mono/mono-${MONO_VERSION}.tar.gz | tar xz -C "${MONO_PATH}" | ||
fi | ||
|
||
export PATH="${MONO_PATH}/mono/bin:${PATH}" | ||
} | ||
install_mono |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters