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);
38 bld.BuildPackage(new PkgCore());
40 catch (System.Exception e)
42 Console.WriteLine("Build failed: " + e.Message);