* 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
This commit is contained in:
@@ -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:\(^<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
|
||||
|
Reference in New Issue
Block a user