another build tool fix, golly
authorDavid Anderson <dvander@alliedmods.net>
Fri Feb 22 14:36:04 2008 +0000 (2008-02-22)
changeset 1881074c807242d2
parent 1880 202fa67fc0a9
child 1882 0dc73c9b9e44
another build tool fix, golly
tools/builder/LinuxBuilder.cs
     1.1 --- a/tools/builder/LinuxBuilder.cs	Fri Feb 22 14:32:08 2008 +0000
     1.2 +++ b/tools/builder/LinuxBuilder.cs	Fri Feb 22 14:36:04 2008 +0000
     1.3 @@ -39,9 +39,20 @@
     1.4  				}
     1.5  			}
     1.6  
     1.7 +			string output_folder = (lib.release_mode == ReleaseMode.ReleaseMode_Release) ? "Release" : "Debug";
     1.8 +
     1.9 +			if (lib.build_mode == BuildMode.BuildMode_Episode2)
    1.10 +			{
    1.11 +				output_folder += ".orangebox";
    1.12 +			}
    1.13 +			else if (lib.build_mode == BuildMode.BuildMode_OldMetamod)
    1.14 +			{
    1.15 +				output_folder += ".original";
    1.16 +			}
    1.17 +
    1.18  			string binpath = Config.PathFormat("{0}/{1}/{2}",
    1.19  				path,
    1.20 -				(lib.release_mode == ReleaseMode.ReleaseMode_Release) ? "Release" : "Debug",
    1.21 +				output_folder,
    1.22  				binName);
    1.23  			
    1.24  			if (File.Exists(binpath))
    1.25 @@ -58,12 +69,10 @@
    1.26  			else if (lib.build_mode == BuildMode.BuildMode_Episode2)
    1.27  			{
    1.28  				makefile_args = "ENGINE=\"orangebox\"";
    1.29 -				binpath += ".orangebox";
    1.30  			}
    1.31  			else if (lib.build_mode == BuildMode.BuildMode_OldMetamod)
    1.32  			{
    1.33  				makefile_args = "ENGINE=\"original\"";
    1.34 -				binpath += ".original";
    1.35  			}
    1.36  
    1.37  			/* Clean the project first */