Permalink
Browse files

Merge pull request #60 from FROGGS/master

use $*EXECUTABLE_NAME instead of hard-coded 'perl6'
  • Loading branch information...
2 parents 9f2591b + 8375930 commit 41a73f3e2a3faa5a5374b83723df668cf11f8683 @tadzik committed Nov 19, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 bootstrap.pl
  2. +3 −3 rebootstrap.pl
View
@@ -44,7 +44,7 @@ BEGIN
%*ENV<PERL6LIB> ~= "{$env_sep}{cwd}/ext/JSON__Tiny/lib";
%*ENV<PERL6LIB> ~= "{$env_sep}{cwd}/lib";
-shell "perl6 bin/panda install File::Find Shell::Command JSON::Tiny {cwd}";
+shell "$*EXECUTABLE_NAME bin/panda install File::Find Shell::Command JSON::Tiny {cwd}";
if "$destdir/panda/src".IO ~~ :d {
rm_rf "$destdir/panda/src"; # XXX This shouldn't be necessary, I think
# that src should not be kept at all, but
View
@@ -19,7 +19,7 @@ BEGIN
if not $state-file.defined {
say "No need to rebootstrap, running normal bootstrap";
- shell 'perl6 bootstrap.pl';
+ shell "$*EXECUTABLE_NAME bootstrap.pl";
exit 0;
}
@@ -44,9 +44,9 @@ BEGIN
# and reinstall all manually-installed modules
rm_rf "$prefix/lib";
rm_rf "$prefix/panda";
-shell 'perl6 bootstrap.pl';
+shell "$*EXECUTABLE_NAME bootstrap.pl";
say "==> Reinstalling @modules[]";
-shell "perl6 bin/panda install @modules[]";
+shell "$*EXECUTABLE_NAME bin/panda install @modules[]";
# Save the backup state file back to $prefix/panda/
spurt "$state-file.bak", $old-state if $old-state;

0 comments on commit 41a73f3

Please sign in to comment.