# 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
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
# 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
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
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