Skip to content

Commit f84a3b0

Browse files
author
Nathan Bridgewater
committed
Merge branch 'master' into mono-3
2 parents 82d4e02 + a9c768f commit f84a3b0

File tree

3 files changed

+103
-2
lines changed

3 files changed

+103
-2
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
#!/bin/bash -e
2+
3+
TOPDIR=$(pwd)
4+
BUILDDIR=$TOPDIR/build
5+
PREFIX=/opt/mono-3.0.2
6+
7+
export PATH=$PREFIX/bin:$PATH
8+
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
9+
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
10+
11+
12+
echo "updating existing system"
13+
yum update -y
14+
15+
echo "installing prerequisites"
16+
yum install -y make automake glibc-devel gcc-c++ gcc glib2-devel pkgconfig subversion bison gettext-libs autoconf httpd httpd-devel libtool libtiff-devel libexif-devel libexif libjpeg-devel gtk2-devel atk-devel pango-devel giflib-devel libglade2-devel gettext-devel
17+
18+
mkdir -p $BUILDDIR
19+
20+
echo
21+
echo "downloading mono packages"
22+
echo
23+
24+
cd $BUILDDIR
25+
26+
PACKAGES=("mono-3.0.2"
27+
"libgdiplus-2.10.9"
28+
"gtk-sharp-2.12.11"
29+
"xsp-2.10.2"
30+
"mod_mono-2.10")
31+
32+
URLS=("http://download.mono-project.com/sources/mono/mono-3.0.2.tar.bz2"
33+
"http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2"
34+
"http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.11.tar.bz2"
35+
"http://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2"
36+
"http://download.mono-project.com/sources/mod_mono/mod_mono-2.10.tar.bz2")
37+
38+
39+
40+
echo Downloading
41+
count=${#PACKAGES[@]}
42+
index=0
43+
while [ "$index" -lt "$count" ]
44+
do
45+
#only download it if you don't already have it.
46+
if [ ! -f "${PACKAGES[$index]}.tar" -a ! -f "${PACKAGES[$index]}.tar.gz" ]
47+
then
48+
curl -O "${URLS[@]:$index:1}"
49+
fi
50+
51+
#extract
52+
if [ -f "${PACKAGES[$index]}.tar.gz" ]
53+
then
54+
tar -zxvf "${PACKAGES[$index]}.tar.gz"
55+
fi
56+
if [ -f "${PACKAGES[$index]}.tar.bz2" ]
57+
then
58+
bunzip2 -df "${PACKAGES[$index]}.tar.bz2"
59+
fi
60+
if [ -f "${PACKAGES[$index]}.tar" ]
61+
then
62+
tar -xvf "${PACKAGES[$index]}.tar"
63+
fi
64+
65+
let "index = $index + 1"
66+
done
67+
68+
69+
echo
70+
echo "building mono packages"
71+
echo
72+
73+
for i in "${PACKAGES[@]}"
74+
do
75+
cd $BUILDDIR/$i
76+
./configure --prefix=$PREFIX
77+
make
78+
79+
if [ "$i" = ${PACKAGES[0]} ]
80+
then
81+
make install
82+
fi
83+
done
84+
85+
echo
86+
echo "installing mono packages"
87+
echo
88+
89+
for i in "${PACKAGES[@]:1}"
90+
do
91+
cd $BUILDDIR/$i
92+
make install
93+
done
94+
95+
cd $BUILDDIR
96+
echo
97+
echo "done"
98+
99+

mono-install-scripts/fedora/install_mono-master.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ cd $BUILDDIR
3939
echo Cloning projects
4040
for i in "${SOURCES[@]}"
4141
do
42-
git clone $i
42+
git clone --depth 1 --branch master $i
43+
git submodule update --init --recursive
4344
done
4445

4546
echo

mono-install-scripts/ubuntu/install_mono-master.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ cd $BUILDDIR
4040
echo Cloning projects
4141
for i in "${SOURCES[@]}"
4242
do
43-
git clone $i
43+
git clone --depth 1 --branch master $i
44+
git submodule update --init --recursive
4445
done
4546

4647
echo

0 commit comments

Comments
 (0)