* man/po/Makefile.in.in: xml2po cannot exclude one entity for
expansion. Make sure config.xml does not exist when the POT file is created in order to keep the configurations in the POT file * man/generate_translations.mak: make sure config.xml does not exist neither when the translated XML is generated. Add the missing %config; (strip out by xml2po). and make sure config.xml is present when the translated manpage is generated. * man/generate_mans.mak: config.xml is needed for the generation of manpages (already in the .deps for the English manpages, but needed for the translations). * man/Makefile.am: Added missing CREATE_HOME.xml.
This commit is contained in:
@@ -3,8 +3,15 @@ if ENABLE_REGENERATE_MAN
|
||||
LANG=$(notdir $(CURDIR))
|
||||
|
||||
%.xml: ../%.xml ../po/$(LANG).po
|
||||
[ ! -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;/' $@
|
||||
|
||||
config.xml: ../config.xml.in
|
||||
make -C .. config.xml
|
||||
cp ../config.xml $@
|
||||
|
||||
include ../generate_mans.mak
|
||||
|
||||
|
Reference in New Issue
Block a user