Bootstrap performs all steps up to executing builer now.
Builder sends error code on failure now.
3 using System.Diagnostics;
9 static void Main(string[] args)
11 if (args.GetLength(0) < 1)
13 System.Console.WriteLine("Usage: <config file>");
17 Config cfg = new Config();
18 if (!cfg.ReadFromFile(args[0]))
23 /* :TODO: Add path validation */
27 if (cfg.Platform == BasePlatform.Platform_Linux)
29 bld = new LinuxBuilder(cfg);
31 else if (cfg.Platform == BasePlatform.Platform_Windows)
33 bld = new Win32Builder(cfg);
34 if (cfg.pdb_log_file != null && File.Exists(cfg.pdb_log_file))
36 File.Delete(cfg.pdb_log_file);
42 bld.BuildPackage(new PkgCore());
44 catch (System.Exception e)
46 Console.WriteLine("Build failed: " + e.Message);