Add copy exclusion filters

Repaired windows builder
Fixed /build to be /rebuild
This commit is contained in:
David Anderson
2005-08-24 05:19:23 +00:00
parent 10328f5f81
commit d516824936
7 changed files with 57 additions and 9 deletions

View File

@ -5,7 +5,7 @@ using System.IO;
namespace AMXXRelease
{
//This class specifies the process that builds a release.
//It also implements the functions that are unlikely to change.
//It also implements the functions that are unlikely to change from mod to mod.
public abstract class ABuilder
{
protected Config m_Cfg;
@ -138,6 +138,8 @@ namespace AMXXRelease
for (int i=0; i<files.Length; i++)
{
dest = PropSlashes(basedir + "\\scripting\\" + GetFileName(files[i]));
if (mod.ExcludeCopy(files[i]))
continue;
File.Copy(files[i], dest, true);
}
}
@ -145,7 +147,7 @@ namespace AMXXRelease
return true;
}
private static string GetFileName(string input)
public static string GetFileName(string input)
{
for (int i=input.Length-1; i>=0; i--)
{