diff --git a/ChangeLog b/ChangeLog index bee9c2c9..26610452 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2009-09-07 Nicolas François + + * 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 * libmisc/limits.c: Fix the format to match the unsigned long diff --git a/man/generate_mans.deps b/man/generate_mans.deps index 3cf89749..264fa0ac 100644 --- a/man/generate_mans.deps +++ b/man/generate_mans.deps @@ -17,7 +17,6 @@ gpasswd.1: login.defs.d/SHA_CRYPT_MIN_ROUNDS.xml 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 diff --git a/man/generate_mans.mak b/man/generate_mans.mak index 2fd2e214..9d4c83e5 100644 --- a/man/generate_mans.mak +++ b/man/generate_mans.mak @@ -15,7 +15,10 @@ else SHA_CRYPT_COND=no_sha_crypt endif -%: %.xml Makefile config.xml +%.xml-config: %.xml Makefile + sed -e 's/^/%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 $< diff --git a/man/generate_translations.mak b/man/generate_translations.mak index 95256f14..7344d8dd 100644 --- a/man/generate_translations.mak +++ b/man/generate_translations.mak @@ -2,11 +2,8 @@ LANG=$(notdir $(CURDIR)) %.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:\(^:\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 diff --git a/man/groupadd.8.xml b/man/groupadd.8.xml index 59da57a2..133e89d3 100644 --- a/man/groupadd.8.xml +++ b/man/groupadd.8.xml @@ -33,8 +33,7 @@ - -%config; + ]> diff --git a/man/po/Makefile.in.in b/man/po/Makefile.in.in index 93b4b757..1e83addd 100644 --- a/man/po/Makefile.in.in +++ b/man/po/Makefile.in.in @@ -94,12 +94,8 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed @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 \