diff options
author | Patrick R. Michaud <pmichaud@pobox.com> | 2012-12-29 10:51:21 -0800 |
---|---|---|
committer | Patrick R. Michaud <pmichaud@pobox.com> | 2012-12-29 10:51:21 -0800 |
commit | 173db4634aca5c2077ff09167cc257f365fbe210 (patch) | |
tree | 29d8106df7ee12d578af8b9b5423d384c2c615ba /tools/build/module-install.pl | |
parent | 0feb3a0a634b415c2a4bef9bf7525e78425ea268 (diff) | |
parent | b2e6559a64bc16f0fbac1fd93911e61a8c30f4e4 (diff) |
Merge pull request #17 from hoelzro/master
Make building RPMS and other Linux packages easier
Diffstat (limited to 'tools/build/module-install.pl')
-rw-r--r-- | tools/build/module-install.pl | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tools/build/module-install.pl b/tools/build/module-install.pl index c5a4deb..6522154 100644 --- a/tools/build/module-install.pl +++ b/tools/build/module-install.pl @@ -69,15 +69,19 @@ sub path_to_module_name { $_; } -print "== Precompiling modules\n"; -chdir 'rakudo'; -foreach my $pm (@pmfiles) { - my $out = $pm; - $out =~ s/\.pm6?$/.pir/; - my @cmd = ($perl6bin, '--target=pir', "--output=$out", $pm); - print join(' ', @cmd), "\n"; - system(@cmd); -} +do { + local $ENV{'PERL6LIB'} = $perl6lib; + + print "== Precompiling modules\n"; + chdir 'rakudo'; + foreach my $pm (@pmfiles) { + my $out = $pm; + $out =~ s/\.pm6?$/.pir/; + my @cmd = ($perl6bin, '--target=pir', "--output=$out", $pm); + print join(' ', @cmd), "\n"; + system(@cmd); + } +}; # According to "Introduction to Algorithms" by Cormen et al., topological |