Skip to content

Commit

Permalink
Ensure that DESTDIR is respected
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Jul 11, 2012
1 parent c77524e commit c37cd2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/panda
Expand Up @@ -69,7 +69,7 @@ my $panda;

$panda = Panda.new(
srcdir => "$pandadir/src",
destdir => "$home/.perl6",
destdir => "{cwd}/%*ENV<DESTDIR>" // "$home/.perl6",
statefile => "$pandadir/state",
projectsfile => "$pandadir/projects.json"
);
Expand Down
8 changes: 6 additions & 2 deletions bootstrap.pl
Expand Up @@ -11,11 +11,15 @@
.close;
}

if %*ENV<DESTDIR> {
%*ENV<PERL6LIB> ~= ":{cwd}/{%*ENV<DESTDIR>}/lib"
}

%*ENV<PERL6LIB> ~= ":{cwd}/ext/File__Tools/lib";
%*ENV<PERL6LIB> ~= ":{cwd}/ext/JSON__Tiny/lib";
%*ENV<PERL6LIB> ~= ":{cwd}/ext/Test__Mock/lib";
%*ENV<PERL6LIB> ~= ":{cwd}/lib";
shell "perl6 bin/panda install File::Tools JSON::Tiny Test::Mock";
shell "perl6 bin/panda install .";

shell "perl6 bin/panda install File::Tools JSON::Tiny Test::Mock .";

unlink "$home/.panda/projects.json";

0 comments on commit c37cd2c

Please sign in to comment.