Skip to content

Commit 023ea54

Browse files
committed
Added build script to install Mono.
1 parent 7ce23ae commit 023ea54

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

build/InstallMono.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
osis()
2+
{
3+
local n=0
4+
if [[ "$1" = "-n" ]]; then n=1;shift; fi
5+
6+
# echo $OS|grep $1 -i >/dev/null
7+
uname -s |grep -i "$1" >/dev/null
8+
9+
return $(( $n ^ $? ))
10+
}
11+
12+
osis Darwin &&
13+
{
14+
wget -O mono.pkg http://download.mono-project.com/archive/4.2.1/macos-10-x86/MonoFramework-MDK-4.2.1.102.macos10.xamarin.x86.pkg
15+
sudo installer -pkg \"mono.pkg\" -target /
16+
}
17+
18+
osis Linux &&
19+
{
20+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
21+
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
22+
sudo apt-get update -qq
23+
sudo apt-get install -y mono-devel
24+
}

0 commit comments

Comments
 (0)