Mono svn compile script

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
4/22/2008 8:31:38 AM
Gravatar
Total Posts 92

Mono svn compile script

Here is the script I use to compile mono from svn, since I've been doing it so often lately!    I thought someone else might find it useful.

#!/bin/bash

export MONO_PREFIX=/usr
export PATH=$MONO_PREFIX/bin:$PATH
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MONO_PREFIX/lib
export MONO_GAC_PREFIX=$MONO_PREFIX:/usr

for svnupdate in mcs libgdiplus mono mod_mono xsp
do
  echo "Checking out" $svnupdate
   svn checkout svn://anonsvn.mono-project.com/source/trunk/$svnupdate
   svn info ./$svnupdate > $svnupdate.info
done

cd libgdiplus
make clean
make distclean
./autogen.sh --prefix=/usr --enable-png # --with-cairo=system
make
make install
cd ..

cd mono
make clean
make distclean
./autogen.sh --prefix=/usr
mkdir ../mcs/class/lib
make get-monolite-latest
make
make install
cd ..

cd mod_mono
make clean
make distclean
./autogen.sh --prefix=/usr --with-apxs=/usr/sbin/apxs --with-apr-config=/usr/bin/apr-config --disable-debug
make
make install
cd ..

cd xsp
make clean
make distclean
./autogen.sh --prefix=/usr
make
make install
cd ..
 

You must sign in to post in the forums. This thread is closed to new posts.