* man/generate_mans.mak: Fix the generation of translated man

pages. xml2po removed the comment from empty headers and the
	config was no more inserted.
This commit is contained in:
nekral-guest 2011-09-18 17:02:10 +00:00
parent 93ee4927bc
commit 0d00d3eecf
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-09-18 Nicolas François <nicolas.francois@centraliens.net>
* man/generate_mans.mak: Fix the generation of translated man
pages. xml2po removed the comment from empty headers and the
config was no more inserted.
2011-09-18 Nicolas François <nicolas.francois@centraliens.net>
* man/chage.1.xml: The LOGIN argument is not optional.

View File

@ -22,7 +22,11 @@ endif
if ENABLE_REGENERATE_MAN
%.xml-config: %.xml Makefile
sed -e 's/^<!-- SHADOW-CONFIG-HERE -->/<!ENTITY % config SYSTEM "config.xml">%config;/' $< > $@
if grep -q SHADOW-CONFIG-HERE $<; then \
sed -e 's/^<!-- SHADOW-CONFIG-HERE -->/<!ENTITY % config SYSTEM "config.xml">%config;/' $< > $@; \
else \
sed -e 's/^\(<!DOCTYPE .*docbookx.dtd"\)>/\1 [<!ENTITY % config SYSTEM "config.xml">%config;]>/' $< > $@; \
fi
%: %.xml-config Makefile config.xml
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND);$(TCB_COND);$(SHA_CRYPT_COND)" \