Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use $*EXECUTABLE_NAME instead of hard-coded 'perl6'

Because we now have perl6-p and perl6-j binaries.
  • Loading branch information...
commit 837593022d4347b4ca49625b5b0130566697b923 1 parent 9f2591b
@FROGGS authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  bootstrap.pl
  2. +3 −3 rebootstrap.pl
View
2  bootstrap.pl
@@ -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
6 rebootstrap.pl
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.