From 568eb76ae14311784b2f0ae96ba4cd90c303e95f Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Wed, 24 May 2017 18:33:42 -0400 Subject: [PATCH] Make fudgeandrun look for perl6-m and perl6-j Before swapping to system perl6 when ./perl6 is not found. Some times the build doesn't create a ./perl6, only ./perl6-m (I think due to running just `make install` after a compile error). This commit fixes the fudgeandrun bailing out of testing in those cases. --- fudgeandrun | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fudgeandrun b/fudgeandrun index 1bd54491d4..a454b7bb1a 100755 --- a/fudgeandrun +++ b/fudgeandrun @@ -56,8 +56,8 @@ USAGE } # decide between local and PATH perl -my $p6 = catfile('.', 'perl6'); -$p6 = 'perl6' unless -x $p6; +my ($p6) = grep -x, map catfile('.', $_), qw/perl6 perl6-m perl6-j/; +$p6 = 'perl6' unless $p6; # implementation and compiler my $impl; @@ -166,4 +166,3 @@ Could not run $cmd error: $err EO_ERR } -