diff options
author | Moritz Lenz <moritz@faui2k3.org> | 2015-02-03 11:22:53 +0100 |
---|---|---|
committer | Moritz Lenz <moritz@faui2k3.org> | 2015-02-03 11:22:53 +0100 |
commit | 9da6ec49d78a1022839d44ba2615e07da167867e (patch) | |
tree | fea997666007e69bfe9b2d7f5195540b54dc086e /tools/build/bin-install.pl | |
parent | cc27628007ceffcabce76e2675fcdb9e52c0f343 (diff) |
Fix shebang line on Mac OS X2014.12.2
hopefully closes #42
Diffstat (limited to 'tools/build/bin-install.pl')
-rw-r--r-- | tools/build/bin-install.pl | 5 |
1 files changed, 4 insertions, 1 deletions
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 } $_; |