+2009-09-07 Nicolas François <nicolas.francois@centraliens.net>
+
+ * man/generate_translations.mak, man/generate_mans.mak,
+ po/Makefile.in.in: Removing and restoring the config.xml file
+ broke parallel builds. Build the manpages based on *.xml-config
+ files instead of *.xml files. The *.xml do not include config.xml
+ anymore, which permits to run xml2po without needing to remove
+ config.xml. The config.xml is restored in the *.xml-config files.
+ * man/groupadd.8.xml: Implementation of the above.
+ * man/generate_mans.deps: Updated dependencies
+
2009-09-07 Steve Grubb <sgrubb@redhat.com>
* libmisc/limits.c: Fix the format to match the unsigned long
groupadd.8: login.defs.d/GID_MAX.xml
groupadd.8: login.defs.d/MAX_MEMBERS_PER_GROUP.xml
groupadd.8: login.defs.d/SYS_GID_MAX.xml
-groupadd.8: config.xml
groupdel.8: login.defs.d/MAX_MEMBERS_PER_GROUP.xml
groupmems.8: login.defs.d/MAX_MEMBERS_PER_GROUP.xml
groupmod.8: login.defs.d/MAX_MEMBERS_PER_GROUP.xml
SHA_CRYPT_COND=no_sha_crypt
endif
-%: %.xml Makefile config.xml
+%.xml-config: %.xml Makefile
+ sed -e 's/^<!-- SHADOW-CONFIG-HERE -->/<!ENTITY % config SYSTEM "config.xml">%config;/' $< > $@
+
+%: %.xml-config Makefile config.xml
if ENABLE_REGENERATE_MAN
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND);$(SHA_CRYPT_COND)" \
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
%.xml: ../%.xml ../po/$(LANG).po
if ENABLE_REGENERATE_MAN
- [ ! -f ../config.xml ] || mv ../config.xml ../config.xml.bak
xml2po --expand-all-entities -l $(LANG) -p ../po/$(LANG).po -o $@ ../$@
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
- [ ! -f ../config.xml.bak ] || mv ../config.xml.bak ../config.xml
- sed -i 's/config SYSTEM "config.xml">/config SYSTEM "config.xml">\%config;/' $@
else
@echo you need to run configure with --enable-man to generate man pages
@false
<!ENTITY GID_MAX SYSTEM "login.defs.d/GID_MAX.xml">
<!ENTITY MAX_MEMBERS_PER_GROUP SYSTEM "login.defs.d/MAX_MEMBERS_PER_GROUP.xml">
<!ENTITY SYS_GID_MAX SYSTEM "login.defs.d/SYS_GID_MAX.xml">
-<!ENTITY % config SYSTEM "config.xml">
-%config;
+<!-- SHADOW-CONFIG-HERE -->
]>
<refentry id='groupadd.8'>
<!-- $Id$ -->
@set -e; tmpdir=`pwd`; \
echo "cd $(top_srcdir)/man"; \
cd $(top_srcdir)/man; \
- echo "[ ! -f config.xml ] || mv config.xml config.xml.bak"; \
- [ ! -f config.xml ] || mv config.xml config.xml.bak; \
echo "xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(POTFILES))"; \
xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(POTFILES)); \
- echo "[ ! -f config.xml.bak ] || mv config.xml.bak config.xml"; \
- [ ! -f config.xml.bak ] || mv config.xml.bak config.xml; \
cd $$tmpdir
test ! -f $(DOMAIN).po || { \
if test -f $(srcdir)/$(DOMAIN).pot; then \