Permalink
Browse files

make bootstrap.pl more robust

do not add ext/ to lib once ext/ is installed
  • Loading branch information...
1 parent a5814af commit 04b67556b56edd0c4599fc20c9c7e49a292b0cc1 @moritz moritz committed Jul 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 bootstrap.pl
View
@@ -1,5 +1,8 @@
use v6;
-%*ENV<PERL6LIB> = "{%*ENV<PERL6LIB> // ''}:{cwd}/ext:{cwd}/lib";
+my $oldenv = %*ENV<PERL6LIB> // '';
+my $env_sep = $*VM<config><osname> eq 'MSWin32' ?? ';' !! ':';
+%*ENV<PERL6LIB> = join $env_sep, $oldenv, cwd() ~ '/ext', cwd() ~ '/lib';
shell "perl6 bin/panda install File::Tools JSON::Tiny Test::Mock";
+%*ENV<PERL6LIB> = join $env_sep, $oldenv, cwd() ~ '/lib';
shell "perl6 bin/panda install .";

0 comments on commit 04b6755

Please sign in to comment.