Add prebuild commands
[mono.git] / msvc / scripts / prepare.cs
1 //
2 // C# implementation of a handful of shell steps
3 // this is used to automate the buidl in Windows
4 //
5 using System;
6 using System.Text;
7 using System.IO;
8
9 class Prepare {
10
11         static void Main (string [] args)
12         {
13                 string bdir = args.Length == 0 ? "../../../mcs/class" : args [0];
14                         
15                 using (var xps = new StreamReader (bdir + "/System.XML/System.Xml.XPath/Parser.jay")){
16                         using (var xpp = new StreamWriter (bdir + "/System.XML/Mono.Xml.Xsl/PatternParser.jay")){
17
18                                 xpp.Write (xps.ReadToEnd ().Replace ("%start Expr", "%start Pattern"));
19                         }
20                 }
21         }
22         
23 }