In System:
[mono.git] / web / mono-build-mac-fw-release.sh
index c8c0950f4dc7caaf585b15ec703d93f62cb5eb6e..ab4bf563c1e9c3dc77465aad9d76c5a077079de9 100644 (file)
@@ -2,11 +2,18 @@
 
 # this horrid little script updates a mono revision
 # Author: Andy Satori <dru@satori-assoc.com>
+# Modifications: kangaroo
+# Changes June 10/2004
+#  - Updated for beta3 0.96
+# Changes June 2/2004
+#  - Updated for beta2 0.95
+#  - Updated to boehm.gc.a6
+#  - Updated to glib-2.4.1
 
 set -e 
 
 INITIALDIR=$PWD
-VERSION=0.91
+VERSION=0.96
 PREFIX=/Library/Frameworks/Mono.framework/Versions/$VERSION
 
 export C_INCLUDE_PATH=$C_INCLUDE_PATH:$PREFIX/include
@@ -86,13 +93,13 @@ fi
 echo +++ processing glib2
 
 if test ! -f "$PREFIX/lib/libgobject-2.0.la"; then
-       if test ! -d "glib-2.4.0"; then
-               curl ftp://ftp.gtk.org/pub/gtk/v2.4/glib-2.4.0.tar.gz -O
-               tar xzf glib-2.4.0.tar.gz
-               rm glib-2.4.0.tar.gz
+       if test ! -d "glib-2.4.1"; then
+               curl ftp://ftp.gtk.org/pub/gtk/v2.4/glib-2.4.1.tar.gz -O
+               tar xzf glib-2.4.1.tar.gz
+               rm glib-2.4.1.tar.gz
        fi
        
-       cd glib-2.4.0
+       cd glib-2.4.1
        
        ./configure --prefix=$PREFIX 
        make
@@ -102,26 +109,7 @@ if test ! -f "$PREFIX/lib/libgobject-2.0.la"; then
        cd ..
 fi
 
-# boehm gc
-
-echo +++ processing boehm gc
-
-if test ! -f "$PREFIX/lib/libgc.dylib"; then
-       if test ! -d "gc6.3alpha6"; then
-               curl http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc6.3alpha6.tar.gz -O
-               tar xzf gc6.3alpha6.tar.gz
-               rm gc6.3alpha6.tar.gz
-       fi
-       
-       cd gc6.3alpha6
-       
-       ./configure --prefix=$PREFIX --enable-thread=pthreads
-       gnumake
-       make install
-       make clean
-       
-       cd ..
-fi
+# boehm gc, is now built-in (since 0.95)
 
 # icu ( http://oss.software.ibm.com/icu/index.html )
 
@@ -182,6 +170,8 @@ fi
 
 # mono
 
+echo +++ patching libintl to not be statically linked
+perl -pi -e "s/old_library='libintl.a'/old_library=''/" $PREFIX/lib/libintl.la
 echo +++ processing mono run-time libraries
 
 if test ! -f "$PREFIX/bin/mono"; then
@@ -191,14 +181,14 @@ if test ! -f "$PREFIX/bin/mono"; then
        cd $INITIALDIR/Bootstrap
        
        if test ! -d "mono-$VERSION"; then
-               curl http://www.go-mono.com/archive/beta1/mono-$VERSION.tar.gz -O
+               curl http://www.go-mono.com/archive/beta3/mono-$VERSION.tar.gz -O
                tar xzf mono-$VERSION.tar.gz
                rm mono-$VERSION.tar.gz
        fi
        
        cd mono-$VERSION
        
-       ./configure --prefix=$PREFIX --with-gc=boehm 
+       ./configure --prefix=$PREFIX
        make
        make install
        make clean
@@ -214,7 +204,14 @@ if test -e "/Library/Frameworks/Mono.framework/Versions/Current"; then
        rm Current
 fi
 ln -s $VERSION Current
-
-# update the installer source files
-
-
+echo +++ Setup the rest of the framework
+cd /Library/Frameworks/Mono.framework
+ln -s Versions/Current/lib Libraries
+ln -s Versions/Current/include Headers
+ln -s Versions/Current/bin Commands
+for binfile in Commands/*; do
+       sudo rm -f /usr/bin/`echo $binfile | perl -pe 's/\.exe//' | perl -pe 's/Commands\///'`
+       sudo ln -s /Library/Frameworks/Mono.framework/`echo $binfile | perl -pe 's/\.exe//'` /usr/bin/`echo $binfile | perl -pe 's/\.exe//' | perl -pe 's/Commands\///'`
+done
+
+# update the installer source file