tools/builder/Main.cs
branchsourcemod-1.1.0
changeset 2283 03a67e41afbc
parent 1951 c7b4237fff50
child 2287 017a725c9d17
     1.1 --- a/tools/builder/Main.cs	Fri Mar 28 06:21:34 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,46 +0,0 @@
     1.4 -using System;
     1.5 -using System.IO;
     1.6 -using System.Diagnostics;
     1.7 -
     1.8 -namespace builder
     1.9 -{
    1.10 -	class Program
    1.11 -	{
    1.12 -		static void Main(string[] args)
    1.13 -		{
    1.14 -			if (args.GetLength(0) < 1)
    1.15 -			{
    1.16 -				System.Console.WriteLine("Usage: <config file>");
    1.17 -				return;
    1.18 -			}
    1.19 -
    1.20 -			Config cfg = new Config();
    1.21 -			if (!cfg.ReadFromFile(args[0]))
    1.22 -			{
    1.23 -				return;
    1.24 -			}
    1.25 -
    1.26 -			/* :TODO: Add path validation */
    1.27 -
    1.28 -			ABuilder bld = null;
    1.29 -			
    1.30 -			if (cfg.Platform == BasePlatform.Platform_Linux)
    1.31 -			{
    1.32 -				bld = new LinuxBuilder(cfg);
    1.33 -			} 
    1.34 -			else if (cfg.Platform == BasePlatform.Platform_Windows)
    1.35 -			{
    1.36 -				bld = new Win32Builder(cfg);
    1.37 -			}
    1.38 -
    1.39 -			try
    1.40 -			{
    1.41 -				bld.BuildPackage(new PkgCore());
    1.42 -			} 
    1.43 -			catch (System.Exception e) 
    1.44 -			{
    1.45 -				Console.WriteLine("Build failed: " + e.Message);
    1.46 -			}
    1.47 -		}
    1.48 -	}
    1.49 -}