From ce0e9e426dea80c03169eb40b3d680d2036a22f1 Mon Sep 17 00:00:00 2001 From: Michael Hutchinson Date: Thu, 8 Oct 2009 02:59:24 +0000 Subject: More helpful message when you actually have Mono 2.4.x and we require 2.4.2.3_6 svn path=/trunk/monodevelop/; revision=143743 --- main/build/MacOSX/monodevelop | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'main/build') diff --git a/main/build/MacOSX/monodevelop b/main/build/MacOSX/monodevelop index f6a048afe8..afcadd6e98 100755 --- a/main/build/MacOSX/monodevelop +++ b/main/build/MacOSX/monodevelop @@ -40,8 +40,7 @@ MONO_VERSION_MAJOR="$(echo $MONO_VERSION | cut -f1 -d.)" MONO_VERSION_MINOR="$(echo $MONO_VERSION | cut -f2 -d.)" if [ -z "$MONO_VERSION" ] \ || [ $MONO_VERSION_MAJOR -lt $REQUIRED_MAJOR ] \ - || [ $MONO_VERSION_MAJOR -eq $REQUIRED_MAJOR -a $MONO_VERSION_MINOR -lt $REQUIRED_MINOR ] \ - || [ ! -f '/Library/Frameworks/Mono.framework/Versions/Current/updateinfo' ] + || [ $MONO_VERSION_MAJOR -eq $REQUIRED_MAJOR -a $MONO_VERSION_MINOR -lt $REQUIRED_MINOR ] then osascript \ -e "set question to display dialog \"$VERSION_MSG\" with title \"$VERSION_TITLE\" buttons {\"Cancel\", \"Download...\"} default button 2" \ @@ -51,6 +50,18 @@ then exit 1 fi +# this check should be removed when we require 2.6, which will have an updateinfo +if [ ! -f '/Library/Frameworks/Mono.framework/Versions/Current/updateinfo' ]; then \ + STABILITY_MSG="MonoDevelop requires Mono version 2.4.2.3_6 or later for important stability fixes." + osascript \ + -e "set question to display dialog \"$STABILITY_MSG\" with title \"$VERSION_TITLE\" buttons {\"Cancel\", \"Download...\"} default button 2" \ + -e "if button returned of question is equal to \"Download...\" then open location \"$DOWNLOAD_URL\"" + echo "$VERSION_TITLE" + echo "$VERSION_MSG" + exit 1 +fi + + ## use an app-specific registry if possible #if [ -w "$DIR" ]; then # export MONO_ADDINS_REGISTRY="$DIR" -- cgit v1.2.3