Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually take/use the output extension.
  • Loading branch information
jnthn committed Mar 17, 2014
1 parent d0da84f commit ab2d701
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/build/module-install.pl
Expand Up @@ -9,6 +9,7 @@

my $perl6bin = shift @ARGV;
my $perl6lib = shift @ARGV;
my $compext = shift @ARGV;
my $comptarget = shift @ARGV;

my @pmfiles;
Expand Down Expand Up @@ -77,7 +78,7 @@ sub path_to_module_name {
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);
Expand Down

0 comments on commit ab2d701

Please sign in to comment.