aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjnthn <jnthn@jnthn.net>2014-03-17 18:11:13 +0100
committerjnthn <jnthn@jnthn.net>2014-03-17 18:11:13 +0100
commitab2d701649ef37f8ecc3477ab5be08df498f366f (patch)
tree965f0aed5a47e98d925713f42f0796aa888d1e63
parentd0da84fdc49300b8fc261eb088e3455d649c6cbe (diff)
Actually take/use the output extension.
-rw-r--r--tools/build/module-install.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/build/module-install.pl b/tools/build/module-install.pl
index ea22812..f6e06e0 100644
--- a/tools/build/module-install.pl
+++ b/tools/build/module-install.pl
@@ -9,6 +9,7 @@ use File::Basename;
my $perl6bin = shift @ARGV;
my $perl6lib = shift @ARGV;
+my $compext = shift @ARGV;
my $comptarget = shift @ARGV;
my @pmfiles;
@@ -77,7 +78,7 @@ do {
chdir 'rakudo';
foreach my $pm (@pmfiles) {
my $out = $pm;
- $out =~ s/\.pm6?$/.$comptarget/;
+ $out =~ s/\.pm6?$/.$compext/;
my @cmd = ($perl6bin, "--target=$comptarget", "--output=$out", $pm);
print join(' ', @cmd), "\n";
system(@cmd);