[Mono-list] go-mono-linux.sh

Laurent Guerby guerby@acm.org
Sat, 09 Feb 2002 21:29:16 +0100


Thanks to Miguel hate for autoconf ***, here is the script
that makes the promises of the build on unix section
of download.html work on my linux box.

After running it ./install/bin/mint prints:
mint 0.7, the Mono ECMA CLI interpreter, (C) 2001 Ximian, Inc.
...

Is there a downloadable bytecode-compiled version of mcs that I could 
use mint
on to build mcs from source with it (ie: bootstrap on Linux)?
May be we're not there yet.

-- 
Laurent Guerby <guerby@acm.org>

#!/bin/sh

MONO_TOP=$(pwd)
MONO_FTP=$MONO_TOP/ftp
MONO_PREFIX=$MONO_TOP/install

PATH=$MONO_PREFIX/bin:$PATH

if [ ! -d $MONO_FTP ]; then
    mkdir $MONO_FTP
    cd $MONO_FTP || exit 1
    wget 
http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-0.11.0.tar.gz
    wget ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz
    wget http://go-mono.com/snapshots/mono-snapshot-08-Feb-02.tar.gz
fi

cd $MONO_TOP
tar xfz $MONO_FTP/pkgconfig-0.11.0.tar.gz || exit 1
cd $MONO_TOP/pkgconfig-0.11.0
./configure --prefix=$MONO_PREFIX
make
make install

cd $MONO_TOP
tar xfz $MONO_FTP/glib-1.3.12.tar.gz || exit 1
cd $MONO_TOP/glib-1.3.12
./configure --prefix=$MONO_PREFIX
make
make install

cd $MONO_TOP
tar xfz $MONO_FTP/mono-snapshot-08-Feb-02.tar.gz || exit 1
cd $MONO_TOP/mono-08-Feb-02/mono
ACLOCAL_FLAGS="-I $MONO_PREFIX/share/aclocal" ./autogen.sh 
--prefix=$MONO_PREFIX
make
make install