File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments