Permalink
Browse files

Merge pull request #46 from timo/master

make custom Build.pm work again
  • Loading branch information...
2 parents 8bdbe7b + 6b2cc0d commit 23ff9b7324d6f56763ee19cd88c4d5dea8927f73 @tadzik committed May 24, 2013
Showing with 8 additions and 10 deletions.
  1. +8 −10 lib/Panda/Builder.pm
View
@@ -52,20 +52,18 @@ sub build-order(@module-files) {
}
method build($where) {
- return unless "$where/lib".IO ~~ :d;
indir $where, {
my @files = find(dir => 'lib', type => 'file').grep({
$_.name.substr(0, 1) ne '.'
});
- # FIXME
- #if "Build.pm".IO.f {
- # @*INC.push('.');
- # require 'Build';
- # if ::('Build').isa(Panda::Builder) {
- # ::('Build').new(resources => $!resources).build($p);
- # }
- # @*INC.pop;
- #}
+ if "Build.pm".IO.f {
+ @*INC.push('.');
+ require 'Build.pm';
+ if ::('Build').isa(Panda::Builder) {
+ ::('Build').new.build($where);
+ }
+ @*INC.pop;
+ }
my @dirs = @files.map(*.dir).uniq;
mkpath "blib/$_" for @dirs;

0 comments on commit 23ff9b7

Please sign in to comment.