Skip to content

Commit

Permalink
Include cc65 .cfg files when copying regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fadden committed Aug 2, 2019
1 parent 1219755 commit ea92edd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MakeDist/FileCopier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ private bool CopyBySpec(string srcDir, string dstDir, SourceFileSpec sfspec,
}
break;
case SourceFileSpec.AsmSources:
if (!fileName.ToUpperInvariant().EndsWith(".S")) {
// Need the sources and the ca65 config files.
if (!(fileName.ToUpperInvariant().EndsWith(".S") ||
!fileName.ToUpperInvariant().EndsWith("_cc65.cfg"))) {
continue;
}
break;
Expand All @@ -210,7 +212,7 @@ private bool CopyBySpec(string srcDir, string dstDir, SourceFileSpec sfspec,
if (matches.Count != 1) {
continue;
}
// Could probably do this with regex... but why.
// Skip project files. Could probably do this with regex... but why.
if (fileName.StartsWith("1") && fileName.EndsWith(".dis65")) {
continue;
}
Expand Down

0 comments on commit ea92edd

Please sign in to comment.