no if $] > 5.017011, warnings => 'experimental::smartmatch';
use File::Copy qw/copy/;
+use File::Basename qw/fileparse/;
+
+my ($format, $name) = @ARGV;
+my $basename = fileparse $name, qr/\..*/;
-my ($format, $basename, $name) = @ARGV;
my $ret = fork // die $!;
if ($ret) {
$SIG{ALRM} = sub {kill KILL => $ret};
sub prepare{
my ($name, $format) = @_;
our $errors;
- my $basename = fileparse $name, qr/\.[^.]*/;
get_logger->trace("Preparing file $name...");
- $errors .= `gruntmaster-compile $format $basename $name 2>&1`;
+ $errors .= `gruntmaster-compile $format $name 2>&1`;
$errors .= "\n";
die 'Compile error' if $?
}