diff --git a/installer/builder/ABuilder.cs b/installer/builder/ABuilder.cs deleted file mode 100755 index 50a37960..00000000 --- a/installer/builder/ABuilder.cs +++ /dev/null @@ -1,249 +0,0 @@ -using System; -using System.Diagnostics; -using System.IO; - -namespace AMXXRelease -{ - //This class specifies the process that builds a release. - //It also implements the functions that are unlikely to change from mod to mod. - public abstract class ABuilder - { - protected Config m_Cfg; - - public virtual void OnBuild() - { - } - - public virtual void CreateDir(string dir) - { - Directory.CreateDirectory(dir); - } - - public virtual bool Build(Config cfg, Build build) - { - m_Cfg = cfg; - - OnBuild(); - - int num = build.GetMods(); - - AMod mod; - for (int i=0; i=0; i--) - { - if ((input[i] == '\\' || input[i] == '/') && i != input.Length-1) - { - return input.Substring(i+1, input.Length-i-1); - } - } - - return input; - } - - public virtual bool BuildModModules(AMod mod) - { - int num = mod.GetModules(); - - Module module; - string binary, basedir; - - basedir = m_Cfg.OutputPath(); - basedir += "\\" + mod.GetModPath(); - basedir = PropSlashes(basedir); - - string dir; - for (int i=0; i= 1) - { - key = s[0]; - if (s.GetLength(0) >= 2) - { - for(int i=1; i - /// Summary description for ModCstrike. - /// - public class ModCstrike : AMod - { - public ModCstrike() - { - AddModules(); - AddPlugins(); - } - - public override sealed string GetName() - { - return "cstrike"; - } - - private void AddPlugins() - { - AddPlugin("miscstats"); - AddPlugin("stats_logging"); - AddPlugin("statsx"); - AddPlugin("restmenu"); - - Plugin csstats = new Plugin("csstats"); - csstats.outdir = "data"; - m_Plugins.Add(csstats); - } - - public override sealed bool CopyExtraFiles(ABuilder ab, string basedir, string source) - { - - if (System.Environment.OSVersion.Platform == System.PlatformID.Unix) - { - } else { - File.Copy(source + "\\dlls\\cstrike\\csx\\msvc10\\Release\\WinCSX.exe", - basedir + "\\data\\WinCSX.exe", - true); - } - - return true; - } - - private void AddModules() - { - Module csx = new Module("csx"); - csx.sourcedir = "dlls\\cstrike\\csx"; - - Module cstrike = new Module("cstrike"); - cstrike.sourcedir = "dlls\\cstrike\\cstrike"; - - m_Modules.Add(csx); - m_Modules.Add(cstrike); - } - } -} diff --git a/installer/builder/ModDoD.cs b/installer/builder/ModDoD.cs deleted file mode 100755 index 9b04d573..00000000 --- a/installer/builder/ModDoD.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; - -namespace AMXXRelease -{ - //Day of Defeat - public class ModDoD : AMod - { - public ModDoD() - { - AddModules(); - AddPlugins(); - } - - public override sealed string GetName() - { - return "dod"; - } - - private void AddPlugins() - { - AddPlugin("stats"); - AddPlugin("plmenu"); - AddPlugin("stats_logging"); - AddPlugin("statssounds"); - - Plugin pl = AddPlugin("dodstats"); - pl.outdir = "data"; - } - - private void AddModules() - { - Module dodx = new Module("dodx"); - dodx.sourcedir = "dlls\\dod\\dodx"; - - Module dodfun = new Module("dodfun"); - dodfun.sourcedir = "dlls\\dod\\dodfun"; - - m_Modules.Add(dodx); - m_Modules.Add(dodfun); - } - } -} - diff --git a/installer/builder/ModEsf.cs b/installer/builder/ModEsf.cs deleted file mode 100755 index f2b48aad..00000000 --- a/installer/builder/ModEsf.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; - -namespace AMXXRelease -{ - //Earth's Special Forces - public class ModEsf : AMod - { - public ModEsf() - { - AddPlugins(); - } - - public override sealed string GetName() - { - return "esf"; - } - - private void AddPlugins() - { - AddPlugin("EvolutionX.Core"); - } - } -} diff --git a/installer/builder/ModNs.cs b/installer/builder/ModNs.cs deleted file mode 100755 index ccd0d4bf..00000000 --- a/installer/builder/ModNs.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; - -namespace AMXXRelease -{ - //Natural Selection - public class ModNs : AMod - { - public ModNs() - { - AddModules(); - AddPlugins(); - } - - public override sealed string GetName() - { - return "ns"; - } - - private void AddPlugins() - { - AddPlugin("mapchooser"); - AddPlugin("nextmap"); - AddPlugin("timeleft"); - AddPlugin("idlekicker"); - AddPlugin("nscommands"); - AddPlugin("unstuck"); - AddPlugin("plmenu"); - } - - private void AddModules() - { - Module ns = new Module("ns"); - - m_Modules.Add(ns); - } - } -} diff --git a/installer/builder/ModTFC.cs b/installer/builder/ModTFC.cs deleted file mode 100755 index c7c27799..00000000 --- a/installer/builder/ModTFC.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; - -namespace AMXXRelease -{ - //Team Fortress Classic - public class ModTFC : AMod - { - public ModTFC() - { - AddModules(); - AddPlugins(); - } - - public override sealed string GetName() - { - return "tfc"; - } - - private void AddPlugins() - { - AddPlugin("plmenu"); - AddPlugin("stats_logging"); - AddPlugin("statssounds"); - AddPlugin("stats"); - Plugin pl = AddPlugin("tfcstats"); - pl.outdir = "data"; - } - - private void AddModules() - { - Module tfcx = new Module("tfcx"); - - m_Modules.Add(tfcx); - } - } -} diff --git a/installer/builder/ModTs.cs b/installer/builder/ModTs.cs deleted file mode 100755 index 8d318ae2..00000000 --- a/installer/builder/ModTs.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; - -namespace AMXXRelease -{ - //The Specialists - public class ModTs : AMod - { - public ModTs() - { - AddModules(); - AddPlugins(); - } - - public override sealed string GetName() - { - return "ts"; - } - - private void AddPlugins() - { - AddPlugin("stats"); - AddPlugin("stats_logging"); - AddPlugin("statssounds"); - Plugin pl = AddPlugin("tsstats"); - pl.outdir = "data"; - } - - private void AddModules() - { - Module tsx = new Module("tsx"); - tsx.sourcedir = "dlls\\ts\\tsx"; - - Module tsfun = new Module("tsfun"); - tsfun.sourcedir = "dlls\\ts\\tsfun"; - - m_Modules.Add(tsx); - m_Modules.Add(tsfun); - } - } -} diff --git a/installer/builder/Properties/AssemblyInfo.cs b/installer/builder/Properties/AssemblyInfo.cs deleted file mode 100644 index 1f2a7388..00000000 --- a/installer/builder/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("AMXX Build Tool")] -[assembly: AssemblyDescription("Build scripts for AMX Mod X")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("AlliedModders, LLC")] -[assembly: AssemblyProduct("AMXX Build Tool")] -[assembly: AssemblyCopyright("(C)Copyright 2004-2008 AlliedModders, LLC")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("83e54c68-616e-4392-9a12-7ff5a27865d4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/installer/builder/Win32Builder.cs b/installer/builder/Win32Builder.cs deleted file mode 100755 index 2ef63ad3..00000000 --- a/installer/builder/Win32Builder.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System; -using System.Diagnostics; -using System.IO; - -namespace AMXXRelease -{ - //Build process for Windows (32bit) - public class Win32Builder : ABuilder - { - private string m_AmxxPc; - - public override void OnBuild() - { - m_AmxxPc = PropSlashes(m_Cfg.GetSourceTree() + "\\plugins\\amxxpc.exe"); - } - - public override void CompressDir(string target, string dir) - { - ProcessStartInfo info = new ProcessStartInfo(); - - info.FileName = m_Cfg.CompressPath(); - info.WorkingDirectory = dir; - info.Arguments = "-r \"" + target + "-windows.zip\" " + "*.*"; - info.UseShellExecute = false; - - Process p = Process.Start(info); - p.WaitForExit(); - } - - public override void AmxxPc(string inpath, string args) - { - ProcessStartInfo info = new ProcessStartInfo(); - - info.WorkingDirectory = PropSlashes(m_Cfg.GetSourceTree() + "\\plugins"); - info.FileName = (string)m_AmxxPc.Clone(); - info.Arguments = inpath + ".sma"; - if (args != null) - info.Arguments += " " + args; - info.UseShellExecute = false; - info.RedirectStandardOutput = true; - info.RedirectStandardError = true; - - Process p = Process.Start(info); - Console.WriteLine(p.StandardOutput.ReadToEnd() + "\n"); - p.WaitForExit(); - } - - public override string GetLibExt() - { - return ".dll"; - } - - public override string BuildModule(Module module) - { - ProcessStartInfo info = new ProcessStartInfo(); - - string dir = m_Cfg.GetSourceTree() + "\\" + module.sourcedir; - if (module.bindir != null) - dir += "\\" + module.bindir; - string file = dir; - if (module.bindir == null) - file += "\\" + module.bindir; - file += "\\" + module.build + "\\" + module.projname + ".dll"; - file = PropSlashes(file); - - if (File.Exists(file)) - File.Delete(file); - - string args = m_Cfg.MakeOpts(); - if (args != null) - { - info.Arguments = args + " "; - } - else - { - info.Arguments = ""; - } - - info.WorkingDirectory = PropSlashes(dir); - info.FileName = m_Cfg.DevenvPath(); - info.Arguments += module.vcproj + ".sln" + " /p:Configuration=" + module.build + " /t:Rebuild"; - info.UseShellExecute = false; - info.RedirectStandardOutput = true; - info.RedirectStandardError = true; - - Process p = Process.Start(info); - Console.WriteLine(p.StandardOutput.ReadToEnd()); - p.WaitForExit(); - p.Close(); - - if (!File.Exists(file)) - { - return null; - } - - return file; - } - } -} - diff --git a/installer/builder/builder.csproj b/installer/builder/builder.csproj deleted file mode 100755 index 1109b1fe..00000000 --- a/installer/builder/builder.csproj +++ /dev/null @@ -1,69 +0,0 @@ - - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {93EF9F0C-2C25-428C-A13F-B7B7E46B22BB} - Exe - Properties - builder - builder - v2.0 - - - 2.0 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - AllRules.ruleset - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - AllRules.ruleset - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/installer/builder/builder.exe b/installer/builder/builder.exe deleted file mode 100755 index 53e78956..00000000 Binary files a/installer/builder/builder.exe and /dev/null differ diff --git a/installer/builder/builder.sln b/installer/builder/builder.sln deleted file mode 100755 index 1420cb6e..00000000 --- a/installer/builder/builder.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "builder", "builder.csproj", "{93EF9F0C-2C25-428C-A13F-B7B7E46B22BB}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {93EF9F0C-2C25-428C-A13F-B7B7E46B22BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {93EF9F0C-2C25-428C-A13F-B7B7E46B22BB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {93EF9F0C-2C25-428C-A13F-B7B7E46B22BB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {93EF9F0C-2C25-428C-A13F-B7B7E46B22BB}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/installer/builder/linux32.info b/installer/builder/linux32.info deleted file mode 100755 index a4171d38..00000000 --- a/installer/builder/linux32.info +++ /dev/null @@ -1,6 +0,0 @@ -compress = /bin/tar -source = /home/users/dvander/amxmodx/trunk -makeopts = -output = /home/users/dvander/done -devenv = /usr/bin/make -release = amxmodx-1.8.1 diff --git a/installer/builder/linux64.info b/installer/builder/linux64.info deleted file mode 100755 index dcfa5f53..00000000 --- a/installer/builder/linux64.info +++ /dev/null @@ -1,6 +0,0 @@ -compress = /bin/tar -source = /home/dvander/code/amxx -makeopts = amd64 -output = /home/dvander/done -devenv = /usr/bin/make -release = amxmodx-1.8.1 diff --git a/installer/builder/mac.info b/installer/builder/mac.info deleted file mode 100644 index c3aa4618..00000000 --- a/installer/builder/mac.info +++ /dev/null @@ -1,6 +0,0 @@ -compress = /usr/bin/zip -source = /Users/Scott/Code/hl/amxmodx-central -makeopts = -output = /Users/Scott/Code/hl/amxmodx-bin -devenv = /usr/bin/make -release = amxmodx-1.8.2 diff --git a/installer/builder/win32.info b/installer/builder/win32.info deleted file mode 100755 index 71bbabbf..00000000 --- a/installer/builder/win32.info +++ /dev/null @@ -1,6 +0,0 @@ -compress = C:\WINDOWS\zip.exe -source = c:\temp\amxmodx -makeopts = -output = c:\temp\done -devenv = C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe -release = amxmodx-1.8.1