Skip to content
Browse files

Merge pull request #65 from Rotwang/master

run custom build method before finding files to install
  • Loading branch information...
2 parents 41a73f3 + 070ffcf commit ce648e757b9d54c9c4c69489267f34315e88e617 @tadzik committed Dec 29, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/Panda/Builder.pm
View
12 lib/Panda/Builder.pm
@@ -54,12 +54,6 @@ sub build-order(@module-files) {
method build($where) {
indir $where, {
- my @files;
- if 'lib'.IO.d {
- @files = find(dir => 'lib', type => 'file').grep({
- $_.basename.substr(0, 1) ne '.'
- });
- }
if "Build.pm".IO.f {
@*INC.push('.');
require 'Build.pm';
@@ -68,6 +62,12 @@ method build($where) {
}
@*INC.pop;
}
+ my @files;
+ if 'lib'.IO.d {
+ @files = find(dir => 'lib', type => 'file').grep({
+ $_.basename.substr(0, 1) ne '.'
+ });
+ }
my @dirs = @files.map(*.directory).uniq;
mkpath "blib/$_" for @dirs;

0 comments on commit ce648e7

Please sign in to comment.
Something went wrong with that request. Please try again.