From df23e096abc172e7c5fcc65839c5ff0d07552553 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 30 Jun 2007 07:01:04 +0000 Subject: [PATCH] Build.cs now uses mono to invoke Prebuild.exe on Unix systems. --- Build/Build.exe | Bin 8192 -> 8704 bytes Prebuild.xml | 2 +- Source/Build/Build.cs | 16 +++++++++++++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Build/Build.exe b/Build/Build.exe index b24aee7f1ba70cbc26f097db0ef062239ea5f528..23ff959329a064f78e88e3e57b03f289169370a9 100644 GIT binary patch delta 1409 zcmYjRZD?Cn7=F$@CpS&nrA^YM>8DAXwONx$wq#2pRQvt$!?mNP)+vsubyU{fauYU( zrLCZD^^Xfjm>Yst9q2m5Ell@g4#q%nf((>_IBI3}7V6@1NE7U^%xbT(+r=L> zucm)Mrt~GbDl+VKnYLy0T?Cj<$a!0c#pRo}&6>{S=e97rE>~?5fZc8aAuK}Zz|8yvA4i{&0|)ki044eEpw*Xar{x>!R9!5&a(vc6E5gBl}#R&?e^Dy<<>9zU1dc^0px%CsJ5O$+h9<;YnGtb$BGXfVVgaDMn#v}V=?GPfB^F}!=w=;X&una?N)`2>PVBq5vjXt`@bV!x30yp zdT4}{|I8XvWo)_^waRF|r}zw-tGX{ttXVfU6Emm@&TwQ6k1E#6;~EB3GiaF)P*SrR zRW+@M*-xr9tXXQLFrQLZDp;sAxG)dMV1A{d;pN z>?01~D81RH>@b$8@iYZA^<@XTiT_FZq^x(eY@}JzV+0ge51igQV)8LZE>+L_XsYjqI~GzY6tW;LF&$sZTaNFH5a!y$y6$q%w#gL zj?QE{wl%rEE0IWbc5dyB%Twi9z32JyTs|jP%fHw*I5}qS$6WBYJ-#s`y zGG^w+jr|zfwVfcs%0o}D7Vm`ewD(NeOe(5%g_d3rRNua1`Ez4afSn&`!} j{II%4U;78jE7je_x9b9|=&HHRwX5l(yWw|Mh}-`Ku+9Xn delta 1182 zcmYjRYiJx*6#njGX1kN;?xdT|Z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,7 @@ .\Instructions.txt - + diff --git a/Source/Build/Build.cs b/Source/Build/Build.cs index 60086e3a..753431f8 100644 --- a/Source/Build/Build.cs +++ b/Source/Build/Build.cs @@ -158,7 +158,8 @@ namespace OpenTK.Build ExecuteProcess(PrebuildPath, "/clean /yes /file " + PrebuildXml); DeleteDirectories(RootPath, "obj"); DeleteDirectories(RootPath, "bin"); - Directory.Delete(RootPath + "Binaries", true); + if (Directory.Exists(RootPath + "Binaries")) + Directory.Delete(RootPath + "Binaries", true); break; case BuildTarget.SVNClean: @@ -209,8 +210,17 @@ namespace OpenTK.Build static void ExecuteProcess(string path, string args) { Process p = new Process(); - p.StartInfo.FileName = path; - p.StartInfo.Arguments = args; + if (Environment.OSVersion.Platform == PlatformID.Unix) + { + p.StartInfo.FileName = "mono"; + p.StartInfo.Arguments = path + " " + args; + } + else + { + p.StartInfo.FileName = path; + p.StartInfo.Arguments = args; + } + p.StartInfo.WorkingDirectory = RootPath; p.StartInfo.CreateNoWindow = true; p.StartInfo.RedirectStandardOutput = true;