* man/generate_translations.mak: Generic rules for all the
generated translated manpages (if ENABLE_REGENERATE_MAN). * man/Makefile.am: Removed rules for all the generated translated manpages. * man/sv/Makefile.am, man/de/Makefile.am, man/fr/Makefile.am, man/pl/Makefile.am, man/ru/Makefile.am, man/it/Makefile.am: Include generate_translations.mak to handle the generated translations (XML and roff files). * man/Makefile.am: Translated XML files moved from the CLEANFILES variable of man/Makefile.am to the various languages Makefiles.
This commit is contained in:
20
man/generate_translations.mak
Normal file
20
man/generate_translations.mak
Normal file
@@ -0,0 +1,20 @@
|
||||
if ENABLE_REGENERATE_MAN
|
||||
|
||||
LANG=$(notdir $(CURDIR))
|
||||
|
||||
%.xml: ../%.xml $(LANG).po
|
||||
xml2po -l $(LANG) -p $(LANG).po -o $@ ../$@
|
||||
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
|
||||
|
||||
%: %.xml
|
||||
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
||||
|
||||
grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
|
||||
|
||||
getspnam.3: shadow.3
|
||||
|
||||
vigr.8: vipw.8
|
||||
|
||||
CLEANFILES = .xml2po.mo $(man_MANS) $(addsuffix .xml,$(man_MANS))
|
||||
|
||||
endif
|
Reference in New Issue
Block a user