| author | David Anderson <dvander@alliedmods.net> |
| Fri Feb 16 03:47:10 2007 +0000 (2007-02-16) | |
| changeset 501 | e209a7296936 |
| parent 388 | 4c346c316a49 |
| child 686 | b3f80b9ced9e |
| permissions | -rw-r--r-- |
1 using System;
2 using System.IO;
3 using System.Diagnostics;
5 namespace builder
6 {
7 class Program
8 {
9 static void Main(string[] args)
10 {
11 if (args.GetLength(0) < 1)
12 {
13 System.Console.WriteLine("Usage: <config file>");
14 return;
15 }
17 Config cfg = new Config();
18 if (!cfg.ReadFromFile(args[0]))
19 {
20 return;
21 }
23 /* :TODO: Add path validation */
25 ABuilder bld = null;
27 if (cfg.Platform == BasePlatform.Platform_Linux)
28 {
29 bld = new LinuxBuilder(cfg);
30 }
31 else if (cfg.Platform == BasePlatform.Platform_Windows)
32 {
33 bld = new Win32Builder(cfg);
34 }
36 bld.BuildPackage(new PkgCore());
37 }
38 }
39 }