ignore hidden files during build
- still possible to add them via "sourceFiles"
- as dots aren't allowed in D module names it's pretty
  uncommon to use them in a d source file name
1 parent d25f784 commit f03e4dd50d5d64591bf80d2306d0eda8b04f1678
@Martin Nowak Martin Nowak authored on 21 Mar 2015
Showing 13 changed files
View
4
source/dub/recipe/packagerecipe.d
continue;
}
 
foreach (d; dirEntries(path.toNativeString(), pattern, SpanMode.depth)) {
if (isDir(d.name)) continue;
import std.path : baseName;
if (baseName(d.name)[0] == '.' || isDir(d.name)) continue;
auto src = Path(d.name).relativeTo(base_path);
__traits(getMember, dst, method)(src.toNativeString());
}
}
View
6
test/ignore-hidden-1/.gitignore 0 → 100644
.dub
docs.json
__dummy.html
*.o
*.obj
View
test/ignore-hidden-1/.no_run 0 → 100644
View
test/ignore-hidden-1/.no_test 0 → 100644
View
test/ignore-hidden-1/dub.json 0 → 100644
View
test/ignore-hidden-1/source/.hidden.d 0 → 100644
View
test/ignore-hidden-1/source/app.d 0 → 100644
View
test/ignore-hidden-2/.gitignore 0 → 100644
View
test/ignore-hidden-2/.no_run 0 → 100644
View
test/ignore-hidden-2/.no_test 0 → 100644
View
test/ignore-hidden-2/dub.json 0 → 100644
View
test/ignore-hidden-2/source/.hidden.d 0 → 100644
View
test/ignore-hidden-2/source/app.d 0 → 100644