Skip to content

Commit

Permalink
Fix p6doc build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiepi committed Jun 17, 2018
1 parent fc5de43 commit 0905e8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Build.pm
Expand Up @@ -2,6 +2,7 @@
# need this to install pod under .../share/perl6/doc
# This fixes p6doc command line use.

use v6;
use File::Find;

class Build {
Expand All @@ -11,7 +12,7 @@ class Build {
mkdir($dest-pref) unless $dest-pref.d;

my @files = find(dir => "$workdir/doc", type => 'file').list;

my $copied-all = True;
for @files -> $file {
next if $file.basename eq 'HomePage.pod6';

Expand All @@ -23,7 +24,11 @@ class Build {
say "Copying {$rel-dest} to {$abs-dest}";

copy($file, $abs-dest);
$copied-all = False unless $abs-dest.IO.e;
}

# Zef considers the build to have passed only if a truthy value is returned.
$copied-all;
}
method isa($what) { # Only needed for older panda compatibility
return True if $what.^name eq 'Panda::Builder';
Expand Down

0 comments on commit 0905e8b

Please sign in to comment.