From 9da6ec49d78a1022839d44ba2615e07da167867e Mon Sep 17 00:00:00 2001 From: Moritz Lenz Date: Tue, 3 Feb 2015 11:22:53 +0100 Subject: Fix shebang line on Mac OS X hopefully closes #42 --- tools/build/bin-install.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/build/bin-install.pl b/tools/build/bin-install.pl index 1b47942..ed493ba 100644 --- a/tools/build/bin-install.pl +++ b/tools/build/bin-install.pl @@ -16,7 +16,10 @@ for my $filename (@files) { or die "Cannot write file '$dest/$basename' for installing it: $!"; while (<$IN>) { if ($. == 1 && /^#!/) { - print { $OUT } "#!$p6bin\n"; + # https://github.com/rakudo/star/issues/42 + # on Mac OS X, the interpreter must be a binary, so perl6-m + # isn't a good choice; go with /usr/bin/env instead + print { $OUT } "#!/usr/bin/env $p6bin\n"; } else { print { $OUT } $_; -- cgit v1.1