Skip to content
Permalink
Browse files

Get the currect install directory with moar on OpenBSD

  • Loading branch information...
Kaiepi committed May 7, 2019
1 parent c4f33fc commit afc79c2489bbeb37b744255615a54c014d5e5182
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main.nqp
@@ -30,15 +30,15 @@ my $install-dir := $execname ne ''
#?if moar
my $execname := nqp::execname();
my $install-dir := $config<osname> eq 'openbsd'
?? $config<prefix> ~ '/bin/perl6-m'
?? $comp.config<prefix>
!! $execname ne ''
?? nqp::substr($execname, 0, nqp::rindex($execname, $sep, nqp::rindex($execname, $sep) - 1))
!! $comp.config<prefix>;
#?endif
#?if js
my $execname := nqp::execname();
my $install-dir := $config<osname> eq 'openbsd'
?? $config<prefix> ~ '/bin/perl6-js'
?? $comp.config<prefix>
!! $execname ne ''
?? nqp::substr($execname, 0, nqp::rindex($execname, $sep, nqp::rindex($execname, $sep) - 1))
!! $comp.config<prefix>;

0 comments on commit afc79c2

Please sign in to comment.
You can’t perform that action at this time.