From 22a6b2d0eff88f9dc36dbc4c418c824dc220b1d1 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Sun, 27 Sep 2015 17:22:59 +0200 Subject: [PATCH] doc/po/Makefile: build only fully-translated manual pages. --- doc/changelog | 3 ++- doc/po/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/changelog b/doc/changelog index 8f2532f5..a4b595cb 100644 --- a/doc/changelog +++ b/doc/changelog @@ -21,6 +21,7 @@ pdf2djvu (0.9) UNRELEASED; urgency=low * Improve error handling. * Improve the test suite. * Update the Polish translation. + * Disable building the Ukrainian manual page, which is not fully translated. [ Américo Monteiro ] * Update the Portuguese translation. @@ -34,7 +35,7 @@ pdf2djvu (0.9) UNRELEASED; urgency=low [ Kyrill Detinov ] * Update the Russian translation. - -- Jakub Wilk Sun, 27 Sep 2015 13:34:32 +0200 + -- Jakub Wilk Sun, 27 Sep 2015 17:21:49 +0200 pdf2djvu (0.8.2) unstable; urgency=low diff --git a/doc/po/Makefile b/doc/po/Makefile index d1489678..5878ca1c 100644 --- a/doc/po/Makefile +++ b/doc/po/Makefile @@ -53,7 +53,7 @@ man_files = $(addsuffix .1,$(addprefix pdf2djvu.,$(langs))) all: $(man_files) pdf2djvu.%.1: %.xml - $(srcdir)/tools/build-manpage --lang $(<) $(@) + ! [ -s $(<) ] || $(srcdir)/tools/build-manpage --lang $(<) $(@) .PHONY: xml xml: $(xml_files) @@ -66,7 +66,7 @@ $(po_files): %.po: $(source) touch $(@) %.xml: %.po - $(po4a-translate) -m $(source) -p $(<) -l $(@) + $(po4a-translate) -k 100 -m $(source) -p $(<) -l $(@) .PHONY: check check: $(po_files)