summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-04-16 16:34:53 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-04-20 10:55:15 -0400
commit1c1b73f82d98d3289b924f3ea499157195660af0 (patch)
tree7f321c3a566641262955f66c3660a7a8f4beb8ae
parent9b3f37cb0c70c7b18c49b657e3799094a8711cad (diff)
downloadsssd-1c1b73f82d98d3289b924f3ea499157195660af0.tar.gz
sssd-1c1b73f82d98d3289b924f3ea499157195660af0.tar.bz2
sssd-1c1b73f82d98d3289b924f3ea499157195660af0.zip
Warn on 'make update-po' if there are manpages not listed in po4a.cfg
https://fedorahosted.org/sssd/ticket/1219
-rw-r--r--src/man/Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/man/Makefile.am b/src/man/Makefile.am
index 8a6534cf..c15844e8 100644
--- a/src/man/Makefile.am
+++ b/src/man/Makefile.am
@@ -96,6 +96,9 @@ EXTRA_DIST += \
XML_DOC = $(wildcard $(srcdir)/*.xml) $(wildcard $(srcdir)/include/*.xml)
if HAVE_PO4A
+CFG_PAGES = $(addprefix $(srcdir)/, $(shell grep '\[type:docbook\]' $(PO4A_CONFIG) | awk '{print $$2}' | tr '\n' ' '))
+NONTRANSLATED_PAGES = $(filter-out $(CFG_PAGES), $(XML_DOC))
+
# FIXME: Use a stamp file until po4a supports them internally.
man.stamp: $(XML_DOC) $(POTFILE) $(PO4A_CONFIG)
@@ -104,6 +107,10 @@ man.stamp: $(XML_DOC) $(POTFILE) $(PO4A_CONFIG)
touch $@
update-po:
+ @if test x"$(NONTRANSLATED_PAGES)" != "x"; then \
+ echo "The following pages are not translated" $(NONTRANSLATED_PAGES); \
+ exit 1; \
+ fi
cd $(srcdir) && \
$(PO4A) $(PO4A_BUILD_OPTS) --force $(PO4A_CONFIG)