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

@ -27,6 +27,27 @@ namespace AMXXRelease
return null;
}
//annoyingly complicated file exclusion filter
public override sealed bool ExcludeCopy(string file)
{
if ( ((file.IndexOf(".so")!=-1) || (ABuilder.GetFileName(file).CompareTo("amxxpc")==0))
&& (Releaser.IsWindows) )
return true;
if ( (file.IndexOf(".sh")!=-1) && Releaser.IsWindows )
return true;
if ( ((file.IndexOf(".exe")!=-1) || (file.IndexOf(".dll")!=-1))
&& (!Releaser.IsWindows) )
return true;
if ( (file.IndexOf("dlsym")!=-1) && Releaser.IsWindows )
return true;
if ( ((ABuilder.GetFileName(file).CompareTo("sasm")) == 0)
&& Releaser.IsWindows )
return true;
return base.ExcludeCopy(file);
}
public override sealed bool CopyExtraFiles(string basedir, string source)
{
//Create directory structures