diff options
author | intrigeri <intrigeri@boum.org> | 2009-01-01 23:33:16 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2009-01-01 23:33:16 +0100 |
commit | 949c4c0c3a9d188e263068e675e0f2416f313c15 (patch) | |
tree | fce876bb29c45fc056c3da70f6c4f2fb88dc2963 /IkiWiki | |
parent | d0c9c21687b498fa40a6359fb7b7cbcd70034512 (diff) |
po: send msgfmt output to /dev/null, else it creates messages.mo files
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 236b5984f..d741a7928 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -972,7 +972,7 @@ sub isvalidpo ($) { writefile(basename($infile), File::Spec->tmpdir, $content) or return failure("failed to write $infile"); - my $res = (system("msgfmt", "--check", $infile) == 0); + my $res = (system("msgfmt", "--check", $infile, "-o", "/dev/null") == 0); # Unlinking should happen automatically, thanks to File::Temp, # but it does not work here, probably because of the way writefile() |