(my $ref = $path) =~ s/\.po$/\.master.po/;
printstā 'Updating %s ', $path;
my $returnCode = system("git show --format=\%B 'master:$path' > '$ref'");
if ( $returnCode == 0 )
{
system('msgmerge', '-Y', '-o', $path, $ref, $path);
system('msgattrib', '--no-obsolete', '-Y', $path, $path);
} else {
print "...failed due to git error.\n";
}
unlink($ref);
}
Originally posted by @downzydudley in #608