2009-09-01 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / web / mono-build-mac-fw-release.sh
index a6d820e4442cdad0ee1048a6eb942300d0a70bc7..ab4bf563c1e9c3dc77465aad9d76c5a077079de9 100644 (file)
@@ -3,6 +3,8 @@
 # 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
@@ -11,7 +13,7 @@
 set -e 
 
 INITIALDIR=$PWD
-VERSION=0.95
+VERSION=0.96
 PREFIX=/Library/Frameworks/Mono.framework/Versions/$VERSION
 
 export C_INCLUDE_PATH=$C_INCLUDE_PATH:$PREFIX/include
@@ -168,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
@@ -177,7 +181,7 @@ if test ! -f "$PREFIX/bin/mono"; then
        cd $INITIALDIR/Bootstrap
        
        if test ! -d "mono-$VERSION"; then
-               curl http://www.go-mono.com/archive/beta2/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
@@ -200,5 +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