1 diff -Nuard monodevelop-0.5.orig/configure.in monodevelop-0.5/configure.in
2 --- monodevelop-0.5.orig/configure.in 2004-06-29 21:18:46.000000000 +0200
3 +++ monodevelop-0.5/configure.in 2004-07-04 10:58:07.051839656 +0200
5 AC_PATH_PROG(MONO, mono)
7 AC_PATH_PROG(XDGMIME, update-mime-database, no)
9 if test "x$MONO" = "x" ; then
10 - AC_MSG_ERROR([Can't find "mono" in your PATH])
11 + AC_PATH_PROG(MINT, mint)
12 + if test "x$MINT" = "x" ; then
13 + AC_MSG_ERROR([Can't find "mono" or "mint" in your PATH])
17 if test "x$MCS" = "x" ; then
18 AC_MSG_ERROR([Can't find "mcs" in your PATH])
23 dnl unmanaged hard dependencies
24 -MONO_REQUIRED_VERSION=1.0
25 GNOMEVFS_REQUIRED_VERSION=2.0
26 PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES,
27 -mono >= $MONO_REQUIRED_VERSION
28 gnome-vfs-2.0 >= $GNOMEVFS_REQUIRED_VERSION
31 +MONO_REQUIRED_VERSION=1.0
32 +PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
33 +PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MINT,mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
35 +if test "x$has_mono" = "xtrue"; then
36 + if test `uname -s` = "Darwin"; then
37 + AC_PATH_PROG(RUNTIME, mono, no)
38 + AC_PATH_PROG(CSC, mcs, no)
42 + AC_PATH_PROG(RUNTIME, mono, no)
43 + AC_PATH_PROG(CSC, mcs, no)
44 + RUNTIME="$RUNTIME --debug"
49 + if test "x$has_mint" = "xtrue"; then
50 + AC_PATH_PROG(RUNTIME, mint, no)
51 + AC_PATH_PROG(CSC, mcs, no)
59 GTKSHARP_REQUIRED_VERSION=1.0
60 GTKSOURCEVIEWSHARP_REQUIRED_VERSION=0.5
63 src/AddIns/prj2make-sharp-lib/Makefile
64 src/AddIns/prj2make-sharp-lib/AssemblyInfo.cs
65 +src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs
66 +src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
70 diff -Nuard monodevelop-0.5.orig/Makefile.am monodevelop-0.5/Makefile.am
71 --- monodevelop-0.5.orig/Makefile.am 2004-06-27 06:04:20.000000000 +0200
72 +++ monodevelop-0.5/Makefile.am 2004-07-04 10:17:22.675441352 +0200
77 - cd build/bin && LD_LIBRARY_PATH=`echo "$(LD_LIBRARY_PATH):$(MOZILLA_HOME)" | sed 's/^://g'` mono --debug MonoDevelop.exe
78 + cd build/bin && LD_LIBRARY_PATH=`echo "$(LD_LIBRARY_PATH):$(MOZILLA_HOME)" | sed 's/^://g'` $(RUNTIME) MonoDevelop.exe
82 diff -Nuard monodevelop-0.5.orig/monodevelop.in monodevelop-0.5/monodevelop.in
83 --- monodevelop-0.5.orig/monodevelop.in 2004-06-27 06:03:48.000000000 +0200
84 +++ monodevelop-0.5/monodevelop.in 2004-07-04 10:13:21.858051160 +0200
89 - mono --profile ./MonoDevelop.exe $@
90 + @RUNTIME@ --profile ./MonoDevelop.exe $@
94 - mono --debug ./MonoDevelop.exe $@
95 + @RUNTIME@ --debug ./MonoDevelop.exe $@
99 - mono --trace ./MonoDevelop.exe $@
100 + @RUNTIME@ --trace ./MonoDevelop.exe $@
105 # should not use --debug when we are more stable
106 -mono --debug ./MonoDevelop.exe $@
107 +@RUNTIME@ ./MonoDevelop.exe $@
109 diff -Nuard monodevelop-0.5.orig/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs monodevelop-0.5/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
110 --- monodevelop-0.5.orig/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs 2004-06-27 06:02:55.000000000 +0200
111 +++ monodevelop-0.5/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs 1970-01-01 01:00:00.000000000 +0100
114 -// <copyright see="prj:///doc/copyright.txt"/>
115 -// <license see="prj:///doc/license.txt"/>
116 -// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
117 -// <version value="$version"/>
122 -using System.Diagnostics;
123 -using System.Collections;
124 -using System.Reflection;
125 -using System.Resources;
127 -using System.CodeDom.Compiler;
128 -using System.Threading;
130 -using MonoDevelop.Internal.Project;
131 -using MonoDevelop.Gui;
132 -using MonoDevelop.Core.Services;
133 -using MonoDevelop.Services;
135 -namespace CSharpBinding
138 - /// This class describes the main functionalaty of a language codon
140 - public class CSharpBindingExecutionManager
142 - public void Debug (IProject project)
144 - FileUtilityService fileUtilityService = (FileUtilityService) ServiceManager.GetService (typeof (FileUtilityService));
145 - string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
146 - string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
148 - IDebuggingService dbgr = (IDebuggingService) ServiceManager.GetService (typeof (IDebuggingService));
150 - dbgr.Run (new string[] { Path.Combine (directory, exe) } );
153 - public void Execute(string filename)
155 - string exe = Path.ChangeExtension(filename, ".exe");
156 - ProcessStartInfo psi = new ProcessStartInfo("mono", "--debug " + exe);
157 - psi.WorkingDirectory = Path.GetDirectoryName(exe);
158 - psi.UseShellExecute = false;
160 - Process p = new Process();
163 - } catch (Exception) {
164 - throw new ApplicationException("Can not execute " + "\"" + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
168 - public void Execute(IProject project)
170 - CSharpCompilerParameters parameters = (CSharpCompilerParameters)project.ActiveConfiguration;
171 - FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
173 - string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
174 - string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
175 - string args = ((CSharpCompilerParameters)project.ActiveConfiguration).CommandLineParameters;
177 - ProcessStartInfo psi;
178 - if (parameters.ExecuteScript != null && parameters.ExecuteScript.Length > 0) {
179 - //Console.WriteLine("EXECUTE SCRIPT!!!!!!");
180 - psi = new ProcessStartInfo("\"" + parameters.ExecuteScript + "\"");
181 - psi.UseShellExecute = false;
183 - string runtimeStarter = "mono --debug ";
185 - switch (parameters.NetRuntime) {
186 - case NetRuntime.Mono:
187 - runtimeStarter = "mono --debug ";
189 - case NetRuntime.MonoInterpreter:
190 - runtimeStarter = "mint ";
194 - //if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
195 - psi = new ProcessStartInfo("xterm",
197 - @"-e ""{0} '{1}{2}' {3} ; echo; read -p 'press any key to continue...' -n1""",
198 - runtimeStarter, directory, exe, args));
199 - psi.UseShellExecute = false;
201 - // psi = new ProcessStartInfo(runtimeStarter, "\"" + directory + exe + "\" " + args);
202 - // psi.UseShellExecute = false;
207 - psi.WorkingDirectory = Path.GetDirectoryName(directory);
208 - psi.UseShellExecute = false;
210 - Process p = new Process();
213 - } catch (Exception) {
214 - throw new ApplicationException("Can not execute " + "\"" + directory + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
219 diff -Nuard monodevelop-0.5.orig/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in monodevelop-0.5/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in
220 --- monodevelop-0.5.orig/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in 1970-01-01 01:00:00.000000000 +0100
221 +++ monodevelop-0.5/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs.in 2004-07-04 10:48:17.906403376 +0200
224 +// <copyright see="prj:///doc/copyright.txt"/>
225 +// <license see="prj:///doc/license.txt"/>
226 +// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
227 +// <version value="$version"/>
232 +using System.Diagnostics;
233 +using System.Collections;
234 +using System.Reflection;
235 +using System.Resources;
237 +using System.CodeDom.Compiler;
238 +using System.Threading;
240 +using MonoDevelop.Internal.Project;
241 +using MonoDevelop.Gui;
242 +using MonoDevelop.Core.Services;
243 +using MonoDevelop.Services;
245 +namespace CSharpBinding
248 + /// This class describes the main functionalaty of a language codon
250 + public class CSharpBindingExecutionManager
252 + public void Debug (IProject project)
254 + FileUtilityService fileUtilityService = (FileUtilityService) ServiceManager.GetService (typeof (FileUtilityService));
255 + string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
256 + string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
258 + IDebuggingService dbgr = (IDebuggingService) ServiceManager.GetService (typeof (IDebuggingService));
260 + dbgr.Run (new string[] { Path.Combine (directory, exe) } );
263 + public void Execute(string filename)
265 + string exe = Path.ChangeExtension(filename, ".exe");
267 + ProcessStartInfo psi = new ProcessStartInfo("@RUNTIME@ " + exe);
268 + psi.WorkingDirectory = Path.GetDirectoryName(exe);
269 + psi.UseShellExecute = false;
271 + Process p = new Process();
274 + } catch (Exception) {
275 + throw new ApplicationException("Can not execute " + "\"" + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
279 + public void Execute(IProject project)
281 + CSharpCompilerParameters parameters = (CSharpCompilerParameters)project.ActiveConfiguration;
282 + FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
284 + string directory = fileUtilityService.GetDirectoryNameWithSeparator(((CSharpCompilerParameters)project.ActiveConfiguration).OutputDirectory);
285 + string exe = ((CSharpCompilerParameters)project.ActiveConfiguration).OutputAssembly + ".exe";
286 + string args = ((CSharpCompilerParameters)project.ActiveConfiguration).CommandLineParameters;
288 + ProcessStartInfo psi;
289 + if (parameters.ExecuteScript != null && parameters.ExecuteScript.Length > 0) {
290 + //Console.WriteLine("EXECUTE SCRIPT!!!!!!");
291 + psi = new ProcessStartInfo("\"" + parameters.ExecuteScript + "\"");
292 + psi.UseShellExecute = false;
294 + string runtimeStarter = "mono --debug ";
296 + switch (parameters.NetRuntime) {
297 + case NetRuntime.Mono:
298 + runtimeStarter = "mono --debug ";
300 + case NetRuntime.MonoInterpreter:
301 + runtimeStarter = "mint ";
305 + //if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
306 + psi = new ProcessStartInfo("xterm",
308 + @"-e ""{0} '{1}{2}' {3} ; echo; read -p 'press any key to continue...' -n1""",
309 + runtimeStarter, directory, exe, args));
310 + psi.UseShellExecute = false;
312 + // psi = new ProcessStartInfo(runtimeStarter, "\"" + directory + exe + "\" " + args);
313 + // psi.UseShellExecute = false;
318 + psi.WorkingDirectory = Path.GetDirectoryName(directory);
319 + psi.UseShellExecute = false;
321 + Process p = new Process();
324 + } catch (Exception) {
325 + throw new ApplicationException("Can not execute " + "\"" + directory + exe + "\"\n(Try restarting MonoDevelop or start your app manually)");
330 diff -Nuard monodevelop-0.5.orig/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs monodevelop-0.5/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs
331 --- monodevelop-0.5.orig/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs 2004-06-27 06:02:53.000000000 +0200
332 +++ monodevelop-0.5/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs 1970-01-01 01:00:00.000000000 +0100
336 -using System.Diagnostics;
337 -using System.Collections;
338 -using System.Reflection;
339 -using System.Resources;
341 -using System.CodeDom.Compiler;
342 -using System.Threading;
344 -using MonoDevelop.Internal.Project;
345 -using MonoDevelop.Gui;
346 -using MonoDevelop.Core.Services;
348 -namespace NemerleBinding
350 - public class NemerleBindingExecutionServices
353 - public void Execute(string filename)
355 - throw new ApplicationException("No ExecuteFile");
358 - public void Execute(IProject project)
361 - NemerleParameters p = (NemerleParameters)project.ActiveConfiguration;
362 - FileUtilityService fus = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
365 - if (p.ExecuteScript == String.Empty)
367 - exe = "mono --debug";
370 - exe = p.ExecuteScript;
373 - exe += " " + p.OutputAssembly + ".exe " + p.Parameters;
376 - ProcessStartInfo psi = new ProcessStartInfo("xterm",
378 - @"-e ""{0} ;echo;read -p 'press any key to continue...' -n1""",
380 - psi.WorkingDirectory = fus.GetDirectoryNameWithSeparator(p.OutputDirectory);
381 - psi.UseShellExecute = false;
383 - Process pr = new Process();
384 - pr.StartInfo = psi;
386 - } catch (Exception) {
387 - throw new ApplicationException("Can not execute");
393 diff -Nuard monodevelop-0.5.orig/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in monodevelop-0.5/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in
394 --- monodevelop-0.5.orig/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in 1970-01-01 01:00:00.000000000 +0100
395 +++ monodevelop-0.5/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingExecutionServices.cs.in 2004-07-04 10:48:14.086984016 +0200
399 +using System.Diagnostics;
400 +using System.Collections;
401 +using System.Reflection;
402 +using System.Resources;
404 +using System.CodeDom.Compiler;
405 +using System.Threading;
407 +using MonoDevelop.Internal.Project;
408 +using MonoDevelop.Gui;
409 +using MonoDevelop.Core.Services;
411 +namespace NemerleBinding
413 + public class NemerleBindingExecutionServices
416 + public void Execute(string filename)
418 + throw new ApplicationException("No ExecuteFile");
421 + public void Execute(IProject project)
424 + NemerleParameters p = (NemerleParameters)project.ActiveConfiguration;
425 + FileUtilityService fus = (FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
428 + if (p.ExecuteScript == String.Empty)
430 + exe = "@RUNTIME@ ";
433 + exe = p.ExecuteScript;
436 + exe += " " + p.OutputAssembly + ".exe " + p.Parameters;
439 + ProcessStartInfo psi = new ProcessStartInfo("xterm",
441 + @"-e ""{0} ;echo;read -p 'press any key to continue...' -n1""",
443 + psi.WorkingDirectory = fus.GetDirectoryNameWithSeparator(p.OutputDirectory);
444 + psi.UseShellExecute = false;
446 + Process pr = new Process();
447 + pr.StartInfo = psi;
449 + } catch (Exception) {
450 + throw new ApplicationException("Can not execute");
456 diff -Nuard monodevelop-0.5.orig/src/Libraries/SharpRefactory/Makefile.am monodevelop-0.5/src/Libraries/SharpRefactory/Makefile.am
457 --- monodevelop-0.5.orig/src/Libraries/SharpRefactory/Makefile.am 2004-06-27 06:03:38.000000000 +0200
458 +++ monodevelop-0.5/src/Libraries/SharpRefactory/Makefile.am 2004-07-04 10:17:38.544028960 +0200
460 @ $(CSC) /out:$@ /r:$(DLL) src/Main.cs
462 run : test-parser.exe
463 - @ MONO_PATH=`dirname $(DLL)` mono --debug test-parser.exe $(TEST_SOURCE)
464 + @ MONO_PATH=`dirname $(DLL)` $(RUNTIME) test-parser.exe $(TEST_SOURCE)
466 assemblydir = $(libdir)/monodevelop/bin
467 assembly_DATA = $(DLL)