Permalink
Browse files

Merge branch 'accept_missing_lib'

  • Loading branch information...
2 parents d315631 + 99ecd04 commit 1b27a1d53132e53492ce977d63a0d875070a8a3e @tadzik committed May 28, 2013
Showing with 9 additions and 4 deletions.
  1. +6 −3 lib/Panda/Builder.pm
  2. +3 −1 t/builder.t
View
@@ -53,9 +53,12 @@ sub build-order(@module-files) {
method build($where) {
indir $where, {
- my @files = find(dir => 'lib', type => 'file').grep({
- $_.name.substr(0, 1) ne '.'
- });
+ my @files;
+ if 'lib'.IO.d {
+ @files = find(dir => 'lib', type => 'file').grep({
+ $_.name.substr(0, 1) ne '.'
+ });
+ }
if "Build.pm".IO.f {
@*INC.push('.');
require 'Build.pm';
View
@@ -2,7 +2,7 @@ use Test;
use Panda::Builder;
use Shell::Command;
-plan 6;
+plan 7;
my $srcdir = 'testmodules';
@@ -15,6 +15,8 @@ ok "$srcdir/dummymodule/blib/lib/bar.pir".IO !~~ :f, 'pod not compiled';
ok "$srcdir/dummymodule/blib/lib/foo.js".IO ~~ :f,
'random files also copied to blib';
+lives_ok { Panda::Builder.build("$srcdir/testme1") };
+
rm_rf "$srcdir/dummymodule/blib";
# vim: ft=perl6

0 comments on commit 1b27a1d

Please sign in to comment.