Skip to content
This repository
  • 7 commits
  • 2 files changed
  • 0 comments
  • 1 contributor

Showing 2 changed files with 8 additions and 4 deletions. Show diff stats Hide diff stats

  1. +2 1  lib/Panda/Builder.pm
  2. +6 3 lib/Panda/Installer.pm
3  lib/Panda/Builder.pm
@@ -32,7 +32,8 @@ class Panda::Builder does Pies::Builder {
32 32 my @tobuild = self.build-order(@files);
33 33 my $p6lib = "{cwd}/blib/lib:{cwd}/lib:{%*ENV<PERL6LIB>}";
34 34 for @tobuild -> $file {
35   - $file.IO.copy: "blib/{$file.dir}/{$file.name}";
  35 + run "cp $file blib/{$file.dir}/{$file.name}"
  36 + and die "cp failed";
36 37 run "env PERL6LIB=$p6lib perl6 --target=pir "
37 38 ~ "--output=blib/{$file.dir}/"
38 39 ~ "{$file.name.subst(/\.pm6?$/, '.pir')} $file"
9 lib/Panda/Installer.pm
@@ -13,14 +13,17 @@ class Panda::Installer does Pies::Installer {
13 13 for find(dir => 'blib', type => 'file').list -> $i {
14 14 # .substr(5) to skip 'blib/'
15 15 mkdir "$!destdir/{$i.dir.substr(5)}", :p;
16   - $i.IO.copy("$!destdir/{$i.Str.substr(5)}");
  16 + run "cp $i $!destdir/{$i.Str.substr(5)}"
  17 + and die "cp failed";
17 18 }
18 19 }
19 20 if 'bin'.IO ~~ :d {
20 21 for find(dir => 'bin', type => 'file').list -> $bin {
21 22 mkdir "$!destdir/{$bin.dir}", :p;
22   - $bin.IO.copy("$!destdir/$bin");
23   - "$!destdir/$bin".IO.chmod(0o755);
  23 + run "cp $bin $!destdir/$bin"
  24 + and die "cp failed";
  25 + run "chmod 755 $!destdir/$bin"
  26 + and die "chmod failed";
24 27 }
25 28 }
26 29 };

No commit comments for this range

Something went wrong with that request. Please try again.