Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Install dir layout: replace "languages" with "share"
on MoarVM only, atm
  • Loading branch information
moritz committed Mar 16, 2015
1 parent caa6a98 commit 8564111
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/vm/moar/HLL/Backend.nqp
Expand Up @@ -137,7 +137,7 @@ class HLL::Backend::MoarVM {
# Insert it into a template and write it.
my $template := try slurp('src/vm/moar/profiler/template.html');
unless $template {
$template := slurp(nqp::backendconfig()<prefix> ~ '/languages/nqp/lib/profiler/template.html');
$template := slurp(nqp::backendconfig()<prefix> ~ '/share/nqp/lib/profiler/template.html');
}
my $results := subst($template, /'{{{PROFIELR_OUTPUT}}}'/, $json);
if nqp::defined($filename) {
Expand Down
2 changes: 1 addition & 1 deletion tools/build/Makefile-common.in
Expand Up @@ -99,7 +99,7 @@ RM_RF = $(PERL) -MExtUtils::Command -e rm_rf

PREFIX = @prefix@
BIN_DIR = $(PREFIX)/bin
NQP_LANG_DIR = $(PREFIX)/languages/nqp
NQP_LANG_DIR = $(PREFIX)/share/nqp
NQP_LIB_DIR = $(NQP_LANG_DIR)/lib
PROVE = prove

Expand Down
4 changes: 2 additions & 2 deletions tools/build/install-moar-runner.pl
Expand Up @@ -13,8 +13,8 @@
$prefix = File::Spec->rel2abs($prefix);
}

my $lib_dir = File::Spec->catfile($prefix, 'languages', 'nqp', 'lib');
my $nqp_mvm = File::Spec->catfile($prefix, 'languages', 'nqp', 'lib', 'nqp.moarvm');
my $lib_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'lib');
my $nqp_mvm = File::Spec->catfile($prefix, 'share', 'nqp', 'lib', 'nqp.moarvm');

if ($^O eq 'MSWin32') {
my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-m.bat');
Expand Down

0 comments on commit 8564111

Please sign in to comment.