Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2009-05-03 21:52:22 +0400
committerMiguel de Icaza <miguel@gnome.org>2009-05-03 21:52:22 +0400
commit0dbf0040d686a4b660346875d339c2bed3bc72f0 (patch)
tree0e923acd80e3a6e1288449d278262ba27259e23d /msvc/scripts/prepare.cs
parent7ed2e326909931cc5bf7a51459a294faf4aa1afb (diff)
Update to support the compiler buidl
svn path=/trunk/mono/; revision=133436
Diffstat (limited to 'msvc/scripts/prepare.cs')
-rw-r--r--msvc/scripts/prepare.cs23
1 files changed, 16 insertions, 7 deletions
diff --git a/msvc/scripts/prepare.cs b/msvc/scripts/prepare.cs
index 3dc3b3cd47a..3615896fb11 100644
--- a/msvc/scripts/prepare.cs
+++ b/msvc/scripts/prepare.cs
@@ -26,14 +26,23 @@ class Prepare {
Console.Error.WriteLine ("The directory {0} does not contain class at {1}", Path.GetFullPath (bdir), Environment.CurrentDirectory);
Environment.Exit (1);
}
-
- Filter (bdir + "/class/System.XML/System.Xml.XPath/Parser.jay",
- bdir + "/class/System.XML/Mono.Xml.Xsl/PatternParser.jay",
- (i, o) => o.Write (i.ReadToEnd ().Replace ("%start Expr", "%start Pattern")));
- Filter (bdir + "/build/common/Consts.cs.in",
- bdir + "/build/common/Consts.cs",
- (i, o) => o.Write (i.ReadToEnd ().Replace ("@MONO_VERSION@", "Mono-VSBuild")));
+ switch (args [1]){
+ case "xml":
+ Filter (bdir + "/class/System.XML/System.Xml.XPath/Parser.jay",
+ bdir + "/class/System.XML/Mono.Xml.Xsl/PatternParser.jay",
+ (i, o) => o.Write (i.ReadToEnd ().Replace ("%start Expr", "%start Pattern")));
+
+ Filter (bdir + "/build/common/Consts.cs.in",
+ bdir + "/build/common/Consts.cs",
+ (i, o) => o.Write (i.ReadToEnd ().Replace ("@MONO_VERSION@", "Mono-VSBuild")));
+ break;
+
+ default:
+ Console.Error.WriteLine ("Unknonw option to prepare.exe {0}", args [1]);
+ Environment.Exit (1);
+ break;
+ }
}
}