[Monodevelop-patches-list] r1898 - in trunk/MonoDevelop/Core: . src/AddIns/BackendBindings/CSharpBinding src/AddIns/BackendBindings/NemerleBinding src/Libraries/SharpRefactory

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jul 5 15:19:49 EDT 2004


Author: tberman
Date: 2004-07-05 15:19:48 -0400 (Mon, 05 Jul 2004)
New Revision: 1898

Added:
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in
Removed:
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs
Modified:
   trunk/MonoDevelop/Core/ChangeLog
   trunk/MonoDevelop/Core/Makefile.am
   trunk/MonoDevelop/Core/configure.in
   trunk/MonoDevelop/Core/monodevelop.in
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/Makefile.am
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/Makefile.am
   trunk/MonoDevelop/Core/src/Libraries/SharpRefactory/Makefile.am
Log:
Patch from Marcin Krzyzanowski <krzak at pld-linux.org> to fix various mint vs mono issues.


Modified: trunk/MonoDevelop/Core/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/ChangeLog	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/ChangeLog	2004-07-05 19:19:48 UTC (rev 1898)
@@ -1,5 +1,12 @@
 2004-07-05  Todd Berman  <tberman at off.net>
 
+	* configure.in:
+	* Makefile.am:
+	* monodevelop.in: Patch from Marcin Krzyzanowski <krzak at pld-linux.org>
+	to fix mint issues.
+
+2004-07-05  Todd Berman  <tberman at off.net>
+
 	* Makefile.ams: remove libdir == $(prefix)/lib assumption. Patch from
 	Marcin Krzyzanowski <krzak at pld-linux.org>
 

Modified: trunk/MonoDevelop/Core/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/Makefile.am	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/Makefile.am	2004-07-05 19:19:48 UTC (rev 1898)
@@ -43,7 +43,7 @@
 run: runmd
 
 runmd: $(PROGRAM)
-	cd build/bin && LD_LIBRARY_PATH=`echo "$(LD_LIBRARY_PATH):$(MOZILLA_HOME)" | sed 's/^://g'` mono --debug MonoDevelop.exe
+	cd build/bin && LD_LIBRARY_PATH=`echo "$(LD_LIBRARY_PATH):$(MOZILLA_HOME)" | sed 's/^://g'` $(RUNTIME) MonoDevelop.exe
 
 pad: $(MONOPAD)
 

Modified: trunk/MonoDevelop/Core/configure.in
===================================================================
--- trunk/MonoDevelop/Core/configure.in	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/configure.in	2004-07-05 19:19:48 UTC (rev 1898)
@@ -12,9 +12,14 @@
 AC_PATH_PROG(MONO, mono)
 AC_PATH_PROG(MCS, mcs)
 AC_PATH_PROG(XDGMIME, update-mime-database, no)
+
 if test "x$MONO" = "x" ; then
-  AC_MSG_ERROR([Can't find "mono" in your PATH])
+  AC_PATH_PROG(MINT, mint)
+  if test "x$MINT" = "x" ; then
+	AC_MSG_ERROR([Can't find "mono" or "mint" in your PATH])
+  fi
 fi
+
 if test "x$MCS" = "x" ; then
   AC_MSG_ERROR([Can't find "mcs" in your PATH])
 fi
@@ -28,13 +33,38 @@
 fi
 
 dnl unmanaged hard dependencies
-MONO_REQUIRED_VERSION=1.0
 GNOMEVFS_REQUIRED_VERSION=2.0
 PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES,
-mono >= $MONO_REQUIRED_VERSION
 gnome-vfs-2.0 >= $GNOMEVFS_REQUIRED_VERSION
 )
 
+MONO_REQUIRED_VERSION=1.0
+PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
+PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MINT,mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
+
+if test "x$has_mono" = "xtrue"; then
+    if test `uname -s` = "Darwin"; then
+	AC_PATH_PROG(RUNTIME, mono, no)
+	AC_PATH_PROG(CSC, mcs, no)
+	LIB_PREFIX=
+	LIB_SUFFIX=.dylib
+    else
+	AC_PATH_PROG(RUNTIME, mono, no)
+	AC_PATH_PROG(CSC, mcs, no)
+	RUNTIME="$RUNTIME --debug"
+	LIB_PREFIX=.so
+	LIB_SUFFIX=
+    fi
+else
+    if test "x$has_mint" = "xtrue"; then
+	AC_PATH_PROG(RUNTIME, mint, no)
+	AC_PATH_PROG(CSC, mcs, no)
+	LIB_PREFIX=.so
+	LIB_SUFFIX=
+    fi
+fi
+
+
 dnl hard dependencies
 GTKSHARP_REQUIRED_VERSION=1.0
 GTKSOURCEVIEWSHARP_REQUIRED_VERSION=0.5
@@ -94,21 +124,6 @@
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
 AM_GLIB_GNU_GETTEXT
 
-dnl Plateform test and LIBEXT settings
-case "x${host_os}" in
-  x)
-    LIB_PREFIX=
-    LIB_SUFFIX=
-    ;;
-  xlinux*)
-    LIB_PREFIX=.so
-    LIB_SUFFIX=
-    ;;
-  x*darwin*)
-    LIB_SUFFIX=.dylib
-    LIB_PREFIX=
-    ;;
-esac
 AC_SUBST(LIB_SUFFIX)
 AC_SUBST(LIB_PREFIX)
 
@@ -176,6 +191,8 @@
 po/Makefile.in
 src/AddIns/prj2make-sharp-lib/Makefile
 src/AddIns/prj2make-sharp-lib/AssemblyInfo.cs
+src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs
+src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
 ])
 
 echo "---"

Modified: trunk/MonoDevelop/Core/monodevelop.in
===================================================================
--- trunk/MonoDevelop/Core/monodevelop.in	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/monodevelop.in	2004-07-05 19:19:48 UTC (rev 1898)
@@ -50,19 +50,19 @@
 
 case x$1 in
     x--profile)
-    mono --profile ./MonoDevelop.exe $@
+    @RUNTIME@ --profile ./MonoDevelop.exe $@
 	exit 0
     ;;
     x--debug)
-    mono --debug ./MonoDevelop.exe $@
+    @RUNTIME@ --debug ./MonoDevelop.exe $@
 	exit 0
     ;;
 	x--trace)
-    mono --trace ./MonoDevelop.exe $@
+    @RUNTIME@ --trace ./MonoDevelop.exe $@
 	exit 0;
 	;;
 esac
 
 # should not use --debug when we are more stable
-mono --debug ./MonoDevelop.exe $@
+ at RUNTIME@ ./MonoDevelop.exe $@
 


Property changes on: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding
___________________________________________________________________
Name: svn:ignore
   - Makefile
Makefile.in
CSharpBinding.dll
CSharpBinding.pidb

   + Makefile
Makefile.in
CSharpBinding.dll
CSharpBinding.pidb
CSharpBindingExecutionManager.cs


Deleted: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs	2004-07-05 19:19:48 UTC (rev 1898)
@@ -1,106 +0,0 @@
-// <file>
-//     <copyright see="prj:///doc/copyright.txt"/>
-//     <license see="prj:///doc/license.txt"/>
-//     <owner name="Mike Krüger" email="mike at icsharpcode.net"/>
-//     <version value="$version"/>
-// </file>
-
-using System;
-using System.IO;
-using System.Diagnostics;
-using System.Collections;
-using System.Reflection;
-using System.Resources;
-using System.Xml;
-using System.CodeDom.Compiler;
-using System.Threading;
-
-using MonoDevelop.Internal.Project;
-using MonoDevelop.Gui;
-using MonoDevelop.Core.Services;
-using MonoDevelop.Services;
-
-namespace CSharpBinding
-{
-	/// <summary>
-	/// This class describes the main functionalaty of a language codon
-	/// </summary>
-	public class CSharpBindingExecutionManager
-	{
-		public void Debug (IProject project)
-		{
-			FileUtilityService fileUtilityService = (FileUtilityService) ServiceManager.GetService (typeof (FileUtilityService));
-			string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
-			string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
-
-			IDebuggingService dbgr = (IDebuggingService) ServiceManager.GetService (typeof (IDebuggingService));
-			if (dbgr != null)
-				dbgr.Run (new string[] { Path.Combine (directory, exe) } );
-		}
-
-		public void Execute(string filename)
-		{
-			string exe = Path.ChangeExtension(filename, ".exe");
-			ProcessStartInfo psi = new ProcessStartInfo("mono", "--debug " + exe);
-			psi.WorkingDirectory = Path.GetDirectoryName(exe);
-			psi.UseShellExecute = false;
-			try {
-				Process p = new Process();
-				p.StartInfo = psi;
-				p.Start();
-			} catch (Exception) {
-				throw new ApplicationException("Can not execute " + "\"" + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
-			}
-		}
-		
-		public void Execute(IProject project)
-		{
-			CSharpCompilerParameters parameters = (CSharpCompilerParameters)project.ActiveConfiguration;
-			FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
-			
-			string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
-			string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
-			string args = ((CSharpCompilerParameters)project.ActiveConfiguration).CommandLineParameters;
-			
-			ProcessStartInfo psi;
-			if (parameters.ExecuteScript != null && parameters.ExecuteScript.Length > 0) {
-				//Console.WriteLine("EXECUTE SCRIPT!!!!!!");
-				psi = new ProcessStartInfo("\"" + parameters.ExecuteScript + "\"");
-				psi.UseShellExecute = false;
-			} else {
-				string runtimeStarter = "mono --debug ";
-				
-				switch (parameters.NetRuntime) {
-					case NetRuntime.Mono:
-						runtimeStarter = "mono --debug ";
-						break;
-					case NetRuntime.MonoInterpreter:
-						runtimeStarter = "mint ";
-						break;
-				}
-				
-				//if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
-					psi = new ProcessStartInfo("xterm",
-						string.Format (
-						@"-e ""{0} '{1}{2}' {3} ; echo; read -p 'press any key to continue...' -n1""",
-						runtimeStarter, directory, exe, args));
-					psi.UseShellExecute = false;
-				//} else {
-				//	psi = new ProcessStartInfo(runtimeStarter, "\"" + directory + exe + "\" " + args);
-				//	psi.UseShellExecute = false;
-				//}
-			}
-			
-			try {
-				psi.WorkingDirectory = Path.GetDirectoryName(directory);
-				psi.UseShellExecute  =  false;
-				
-				Process p = new Process();
-				p.StartInfo = psi;
-				p.Start();
-			} catch (Exception) {
-				throw new ApplicationException("Can not execute " + "\"" + directory + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
-			}
-		}
-	}
-}

Added: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in	2004-07-05 19:19:48 UTC (rev 1898)
@@ -0,0 +1,107 @@
+// <file>
+//     <copyright see="prj:///doc/copyright.txt"/>
+//     <license see="prj:///doc/license.txt"/>
+//     <owner name="Mike Krüger" email="mike at icsharpcode.net"/>
+//     <version value="$version"/>
+// </file>
+
+using System;
+using System.IO;
+using System.Diagnostics;
+using System.Collections;
+using System.Reflection;
+using System.Resources;
+using System.Xml;
+using System.CodeDom.Compiler;
+using System.Threading;
+
+using MonoDevelop.Internal.Project;
+using MonoDevelop.Gui;
+using MonoDevelop.Core.Services;
+using MonoDevelop.Services;
+
+namespace CSharpBinding
+{
+	/// <summary>
+	/// This class describes the main functionalaty of a language codon
+	/// </summary>
+	public class CSharpBindingExecutionManager
+	{
+		public void Debug (IProject project)
+		{
+			FileUtilityService fileUtilityService = (FileUtilityService) ServiceManager.GetService (typeof (FileUtilityService));
+			string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
+			string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
+
+			IDebuggingService dbgr = (IDebuggingService) ServiceManager.GetService (typeof (IDebuggingService));
+			if (dbgr != null)
+				dbgr.Run (new string[] { Path.Combine (directory, exe) } );
+		}
+
+		public void Execute(string filename)
+		{
+			string exe = Path.ChangeExtension(filename, ".exe");
+			
+			ProcessStartInfo psi = new ProcessStartInfo("@RUNTIME@ " + exe);
+			psi.WorkingDirectory = Path.GetDirectoryName(exe);
+			psi.UseShellExecute = false;
+			try {
+				Process p = new Process();
+				p.StartInfo = psi;
+				p.Start();
+			} catch (Exception) {
+				throw new ApplicationException("Can not execute " + "\"" + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
+			}
+		}
+		
+		public void Execute(IProject project)
+		{
+			CSharpCompilerParameters parameters = (CSharpCompilerParameters)project.ActiveConfiguration;
+			FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
+			
+			string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
+			string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
+			string args = ((CSharpCompilerParameters)project.ActiveConfiguration).CommandLineParameters;
+			
+			ProcessStartInfo psi;
+			if (parameters.ExecuteScript != null && parameters.ExecuteScript.Length > 0) {
+				//Console.WriteLine("EXECUTE SCRIPT!!!!!!");
+				psi = new ProcessStartInfo("\"" + parameters.ExecuteScript + "\"");
+				psi.UseShellExecute = false;
+			} else {
+				string runtimeStarter = "mono --debug ";
+				
+				switch (parameters.NetRuntime) {
+					case NetRuntime.Mono:
+						runtimeStarter = "mono --debug ";
+						break;
+					case NetRuntime.MonoInterpreter:
+						runtimeStarter = "mint ";
+						break;
+				}
+				
+				//if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
+					psi = new ProcessStartInfo("xterm",
+						string.Format (
+						@"-e ""{0} '{1}{2}' {3} ; echo; read -p 'press any key to continue...' -n1""",
+						runtimeStarter, directory, exe, args));
+					psi.UseShellExecute = false;
+				//} else {
+				//	psi = new ProcessStartInfo(runtimeStarter, "\"" + directory + exe + "\" " + args);
+				//	psi.UseShellExecute = false;
+				//}
+			}
+			
+			try {
+				psi.WorkingDirectory = Path.GetDirectoryName(directory);
+				psi.UseShellExecute  =  false;
+				
+				Process p = new Process();
+				p.StartInfo = psi;
+				p.Start();
+			} catch (Exception) {
+				throw new ApplicationException("Can not execute " + "\"" + directory + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
+			}
+		}
+	}
+}

Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/ChangeLog	2004-07-05 19:19:48 UTC (rev 1898)
@@ -1,3 +1,11 @@
+2004-07-05  Todd Berman  <tberman at off.net>
+
+	* CSharpBindingExecutionManager.cs: removed.
+	* CSharpBindingExecutionManager.cs.in: Added
+	* Makefile.am: modified.
+	This patch is from Marcin Krzyzanowski <krzak at pld-linux.org> and it
+	fixes mint issues.
+
 2004-07-04  John Luke  <jluke at cfl.rr.com>
 
 	* Gui/OutputOptionsPanel.cs: use MessageService, remove ResourceService

Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/Makefile.am	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/CSharpBinding/Makefile.am	2004-07-05 19:19:48 UTC (rev 1898)
@@ -29,7 +29,6 @@
 ./Parser/Resolver.cs \
 ./Parser/Parser.cs \
 ./Parser/ExpressionFinder.cs \
-./CSharpBindingExecutionManager.cs \
 ./CSharpAmbience.cs \
 ./Project/CSharpProject.cs \
 ./Project/CSharpCompilerParameters.cs \
@@ -37,7 +36,7 @@
 ./FormattingStrategy/CSharpFormattingStrategy.cs \
 ./CSharpBindingCompilerManager.cs
 
-build_sources = $(addprefix $(srcdir)/, $(FILES))
+build_sources = $(addprefix $(srcdir)/, $(FILES)) CSharpBindingExecutionManager.cs
 
 all: $(ASSEMBLY)
 
@@ -52,5 +51,7 @@
 
 CLEANFILES = $(ASSEMBLY)
 
-EXTRA_DIST = $(FILES)
+DISTCLEANFILES = CSharpBindingExecutionManager.cs
 
+EXTRA_DIST = $(FILES) CSharpBindingExecutionManager.cs.in
+


Property changes on: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding
___________________________________________________________________
Name: svn:ignore
   - Makefile
Makefile.in
NemerleBinding.dll
NemerleBinding.pidb

   + Makefile
Makefile.in
NemerleBinding.dll
NemerleBinding.pidb
NemerleBindingExecutionServices.cs


Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/ChangeLog	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/ChangeLog	2004-07-05 19:19:48 UTC (rev 1898)
@@ -1,3 +1,11 @@
+2004-07-06  Todd Berman  <tberman at off.net>
+
+	* NemerleBindingExecutionServices.cs: removed.
+	* NemerleBindingExecutionServices.cs.in: Added.
+	* Makefile.am: adjusted.
+	This patch is from Marcin Krzyzanowski <krzak at pld-linux.org> and it
+	fixes mint vs mono issues at runtime.
+
 2004-06-26  Pawel Rozanski  <tokugawa at afn.no-ip.org>
 
 	* NemerleBindingCompilerServices.cs: add GenerateMakefile method.

Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/Makefile.am	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/Makefile.am	2004-07-05 19:19:48 UTC (rev 1898)
@@ -15,11 +15,10 @@
 ./Gui/OutputPanel.cs \
 ./Project/NemerleParameters.cs \
 ./Project/NemerleProject.cs \
-./NemerleBindingExecutionServices.cs \
 ./NemerleBindingCompilerServices.cs \
 ./NemerleLanguageBinding.cs 
 
-build_sources = $(addprefix $(srcdir)/, $(FILES))
+build_sources = $(addprefix $(srcdir)/, $(FILES)) NemerleBindingExecutionServices.cs
 
 all: $(ASSEMBLY)
 
@@ -32,4 +31,5 @@
 assembly_DATA = $(ASSEMBLY)
 
 CLEANFILES = $(ASSEMBLY)
-EXTRA_DIST = $(FILES)
+DISTCLEANFILES = NemerleBindingExecutionServices.cs
+EXTRA_DIST = $(FILES) NemerleBindingExecutionServices.cs.in

Deleted: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs	2004-07-05 19:19:48 UTC (rev 1898)
@@ -1,59 +0,0 @@
-using System;
-using System.IO;
-using System.Diagnostics;
-using System.Collections;
-using System.Reflection;
-using System.Resources;
-using System.Xml;
-using System.CodeDom.Compiler;
-using System.Threading;
-
-using MonoDevelop.Internal.Project;
-using MonoDevelop.Gui;
-using MonoDevelop.Core.Services;
-
-namespace NemerleBinding
-{
-	public class NemerleBindingExecutionServices
-	{	
-		
-		public void Execute(string filename)
-		{
-			throw new ApplicationException("No ExecuteFile");
-		}
-		
-		public void Execute(IProject project)
-		{
-			
-			NemerleParameters p = (NemerleParameters)project.ActiveConfiguration;
-			FileUtilityService fus = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
-			string exe;
-			
-			if (p.ExecuteScript == String.Empty)
-			{
-				exe	= "mono --debug";
-			} else
-			{
-				exe = p.ExecuteScript;
-			}
-			
-			exe += " " + p.OutputAssembly + ".exe " + p.Parameters;
-			
-			try {
-				ProcessStartInfo psi = new ProcessStartInfo("xterm",
-					string.Format (
-					@"-e ""{0} ;echo;read -p 'press any key to continue...' -n1""",
-					exe));
-				psi.WorkingDirectory = fus.GetDirectoryNameWithSeparator(p.OutputDirectory);
-				psi.UseShellExecute = false;
-				
-				Process pr = new Process();
-				pr.StartInfo = psi;
-				pr.Start();
-			} catch (Exception) {
-				throw new ApplicationException("Can not execute");
-			}
-		}
-				
-	}
-}

Added: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in	2004-07-05 19:19:48 UTC (rev 1898)
@@ -0,0 +1,59 @@
+using System;
+using System.IO;
+using System.Diagnostics;
+using System.Collections;
+using System.Reflection;
+using System.Resources;
+using System.Xml;
+using System.CodeDom.Compiler;
+using System.Threading;
+
+using MonoDevelop.Internal.Project;
+using MonoDevelop.Gui;
+using MonoDevelop.Core.Services;
+
+namespace NemerleBinding
+{
+	public class NemerleBindingExecutionServices
+	{	
+		
+		public void Execute(string filename)
+		{
+			throw new ApplicationException("No ExecuteFile");
+		}
+		
+		public void Execute(IProject project)
+		{
+			
+			NemerleParameters p = (NemerleParameters)project.ActiveConfiguration;
+			FileUtilityService fus = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
+			string exe;
+			
+			if (p.ExecuteScript == String.Empty)
+			{
+				exe	= "@RUNTIME@ ";
+			} else
+			{
+				exe = p.ExecuteScript;
+			}
+			
+			exe += " " + p.OutputAssembly + ".exe " + p.Parameters;
+			
+			try {
+				ProcessStartInfo psi = new ProcessStartInfo("xterm",
+					string.Format (
+					@"-e ""{0} ;echo;read -p 'press any key to continue...' -n1""",
+					exe));
+				psi.WorkingDirectory = fus.GetDirectoryNameWithSeparator(p.OutputDirectory);
+				psi.UseShellExecute = false;
+				
+				Process pr = new Process();
+				pr.StartInfo = psi;
+				pr.Start();
+			} catch (Exception) {
+				throw new ApplicationException("Can not execute");
+			}
+		}
+				
+	}
+}

Modified: trunk/MonoDevelop/Core/src/Libraries/SharpRefactory/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/src/Libraries/SharpRefactory/Makefile.am	2004-07-05 19:05:54 UTC (rev 1897)
+++ trunk/MonoDevelop/Core/src/Libraries/SharpRefactory/Makefile.am	2004-07-05 19:19:48 UTC (rev 1898)
@@ -125,7 +125,7 @@
 	@ $(CSC) /out:$@ /r:$(DLL) src/Main.cs
 
 run : test-parser.exe
-	@ MONO_PATH=`dirname $(DLL)` mono --debug test-parser.exe $(TEST_SOURCE)
+	@ MONO_PATH=`dirname $(DLL)` $(RUNTIME) test-parser.exe $(TEST_SOURCE)
 
 assemblydir = $(libdir)/monodevelop/bin
 assembly_DATA = $(DLL)




More information about the Monodevelop-patches-list mailing list