2 // C# implementation of a handful of shell steps
3 // this is used to automate the buidl in Windows
10 delegate void filt (StreamReader sr, StreamWriter sw);
12 static void Filter (string inpath, string outpath, filt filter)
14 using (var ins = new StreamReader (){
15 using (var outs = new StreamWriter ()){
21 static void Main (string [] args)
23 string bdir = args.Length == 0 ? "../../../mcs" : args [0];
25 Filter (bdir + "/class/System.XML/System.Xml.XPath/Parser.jay",
26 bdir + "/class/System.XML/Mono.Xml.Xsl/PatternParser.jay",
27 (i, o) => o.Write (i.ReadToEnd ().Replace ("%start Expr", "%start Pattern")));
29 Filter (bdir + "/mcs/build/common/Consts.cs.in",
30 bdir + "/mcs/build/common/Consts.cs",
31 (i, o) => o.Write (i.ReadToEnd ().Replace ("@MONO_VERSION@", "Mono-VSBuild")));