nls: Add all man pages to pot file
The previous Makefile rule would only put the first required file into the pot file because it used $< Unfortunately, due to how po4a tools work, its not just a simple matter of changing it to $^ and you're done, but needs a foreach loop to add -m to each manpage file. This is a temporary fix, after some more work looking into po4a the unified tool (called po4a) will be used.
This commit is contained in:
parent
fead750c67
commit
d5e3650fc3
@ -55,13 +55,16 @@ MAN_POT_FILES = $(top_srcdir)/free.1 $(top_srcdir)/kill.1 $(top_srcdir)/pgrep.1
|
|||||||
DIST_MAN_POTS = $(MAN_PS_POT) $(MAN_TOP_POT) $(MAN_POT)
|
DIST_MAN_POTS = $(MAN_PS_POT) $(MAN_TOP_POT) $(MAN_POT)
|
||||||
|
|
||||||
$(MAN_PS_POT): $(MAN_PS_POT_FILES)
|
$(MAN_PS_POT): $(MAN_PS_POT_FILES)
|
||||||
$(PO4A_UPDATEPO) -o translate_joined=MT -o noarg=ME -f man -m $< -p $@
|
$(eval po4a_manfiles := $(foreach manfile,$^,$(addprefix -m , $(manfile))))
|
||||||
|
$(PO4A_UPDATEPO) -o translate_joined=MT -o noarg=ME -f man $(po4a_manfiles) -p $@
|
||||||
|
|
||||||
$(MAN_TOP_POT): $(MAN_TOP_POT_FILES)
|
$(MAN_TOP_POT): $(MAN_TOP_POT_FILES)
|
||||||
$(PO4A_UPDATEPO) -o translate_joined=MT -o noarg=ME -f man -m $< -p $@
|
$(eval po4a_manfiles := $(foreach manfile,$^,$(addprefix -m , $(manfile))))
|
||||||
|
$(PO4A_UPDATEPO) -o translate_joined=MT -o noarg=ME -f man $(po4a_manfiles) -p $@
|
||||||
|
|
||||||
$(MAN_POT): $(MAN_POT_FILES)
|
$(MAN_POT): $(MAN_POT_FILES)
|
||||||
$(PO4A_UPDATEPO) -o translate_joined=MT -o noarg=ME -f man -m $< -p $@
|
$(eval po4a_manfiles := $(foreach manfile,$^,$(addprefix -m , $(manfile))))
|
||||||
|
$(PO4A_UPDATEPO) -o translate_joined=MT -o noarg=ME -f man $(po4a_manfiles) -p $@
|
||||||
|
|
||||||
dist_man_MANS = $(foreach lang, $(all_langs), $(foreach section, $(MAN_SECTIONS), $(wildcard $(lang)/man$(section)/*.$(section))))
|
dist_man_MANS = $(foreach lang, $(all_langs), $(foreach section, $(MAN_SECTIONS), $(wildcard $(lang)/man$(section)/*.$(section))))
|
||||||
dist-hook: translate-mans
|
dist-hook: translate-mans
|
||||||
|
Loading…
Reference in New Issue
Block a user