build-sys: Rearrange the manual pages
All man pages are found in ./man man-po -> po-man References: https://www.freelists.org/post/procps/Next-for-newlib,3 Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
113
po-man/Makefile.am
Normal file
113
po-man/Makefile.am
Normal file
@@ -0,0 +1,113 @@
|
||||
|
||||
# *.po and *.pot are kept in VCS and generated by po4a-dist command
|
||||
# translated/* are put in distribution but not found in VCS
|
||||
#
|
||||
# run:
|
||||
# rm po-man/man.stamp
|
||||
# make -C po-man man.stamp
|
||||
# To update man page translations
|
||||
|
||||
# Not sure why this needs to be repeated from the top-level Makefile but it does
|
||||
dist_man_MANS = \
|
||||
../man/free.1 \
|
||||
../man/pgrep.1 \
|
||||
../man/pkill.1 \
|
||||
../man/pmap.1 \
|
||||
../man/uptime.1 \
|
||||
../man/vmstat.8 \
|
||||
../man/procps.3 \
|
||||
../man/procps_pids.3 \
|
||||
../man/procps_misc.3
|
||||
|
||||
translated_MANS = $(wildcard translated/*/*.[1-9])
|
||||
translated_MAN_sections=$(subst .,,$(sort $(suffix $(translated_MANS))))
|
||||
|
||||
translated_langs = $(notdir $(wildcard translated/*))
|
||||
|
||||
|
||||
EXTRA_DIST = po4a.cfg \
|
||||
procps-man.pot \
|
||||
$(translated_MANS)
|
||||
|
||||
# Extract the list of languages from the po4a config file.
|
||||
LINGUAS_DIST = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po4a.cfg)
|
||||
|
||||
# If the user has not defined it let's use the default.
|
||||
LINGUAS ?= $(LINGUAS_DIST)
|
||||
|
||||
PO4A_V = $(PO4A_V_@AM_V@)
|
||||
PO4A_V_ = $(PO4A_V_@AM_DEFAULT_V@)
|
||||
PO4A_V_0 = @echo " PO4A $@";
|
||||
|
||||
PO4A_OPTS = --srcdir $(srcdir) --destdir $(CURDIR) \
|
||||
--package-name $(PACKAGE) --package-version $(VERSION) \
|
||||
--msgid-bugs-address "Procps list <procps@freelists.org>"
|
||||
|
||||
all-local: all-local-@USE_PO4A@
|
||||
|
||||
all-local-no:
|
||||
all-local-yes: man.stamp
|
||||
|
||||
# FIXME: Use a stamp file until po4a supports them internally.
|
||||
man.stamp:
|
||||
$(PO4A_V) $(PO4A) $(PO4A_OPTS) $(srcdir)/po4a.cfg
|
||||
$(AM_V_at) touch $@
|
||||
|
||||
clean-local: clean-local-@USE_PO4A@
|
||||
|
||||
clean-local-no:
|
||||
clean-local-yes:
|
||||
rm -rf $(LINGUAS_DIST)
|
||||
$(AM_V_at) rm -f man.stamp
|
||||
|
||||
.PHONY: update-po
|
||||
|
||||
procps-man.pot:
|
||||
# parafiles = $(patsubst %,-m%,$(subst :, ,$(dist_man_MANS)))
|
||||
# parafiles = $(dist_man_MANS:doc=Ente)
|
||||
po4a-gettextize -M utf8 --option groff_code=verbatim --option generated --option untranslated="a.RE,\|" --option unknown_macros=untranslated -f man $(patsubst %,-m%,$(subst :, ,$(dist_man_MANS))) -p $@
|
||||
|
||||
update-po:
|
||||
$(PO4A_V) $(PO4A) $(PO4A_OPTS) --force $(srcdir)/po4a.cfg
|
||||
|
||||
|
||||
install-data-local:
|
||||
for lang in $(LINGUAS) ; do \
|
||||
files=""; \
|
||||
for trans in $(notdir $(dist_man_MANS)); do \
|
||||
if [ -f $(CURDIR)/$$lang/$$trans ]; then \
|
||||
files="$$files $(CURDIR)/$$lang/$$trans"; \
|
||||
elif [ -f $(srcdir)/$$lang/$$trans ]; then \
|
||||
files="$$files $(srcdir)/$$lang/$$trans"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(MAKE) -C .. install-man \
|
||||
mandir="$(mandir)/$$lang" \
|
||||
man_MANS="" \
|
||||
dist_man_MANS="$$files"; \
|
||||
done
|
||||
|
||||
uninstall-local:
|
||||
for lang in $(LINGUAS); do \
|
||||
files=""; \
|
||||
for trans in $(notdir $(dist_man_MANS)); do \
|
||||
if [ -f $(CURDIR)/$$lang/$$trans ]; then \
|
||||
files="$$files $(CURDIR)/$$lang/$$trans"; \
|
||||
elif [ -f $(srcdir)/$$lang/$$trans ]; then \
|
||||
files="$$files $(srcdir)/$$lang/$$trans"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(MAKE) -C .. uninstall-man \
|
||||
mandir="$(mandir)/$$lang" \
|
||||
man_MANS="" \
|
||||
dist_man_MANS="$$files"; \
|
||||
done
|
||||
|
||||
dist-hook: man.stamp
|
||||
cp $(srcdir)/man.stamp $(distdir)/
|
||||
for lang in $(LINGUAS_DIST); do \
|
||||
cp $(srcdir)/$$lang.po $(distdir); \
|
||||
cp $(srcdir)/$$lang.add $(distdir); \
|
||||
$(MKDIR_P) $(distdir)/$$lang; \
|
||||
cp -r $(srcdir)/$$lang $(distdir)/; \
|
||||
done
|
||||
17533
po-man/de.po
Normal file
17533
po-man/de.po
Normal file
File diff suppressed because it is too large
Load Diff
20569
po-man/fr.po
Normal file
20569
po-man/fr.po
Normal file
File diff suppressed because it is too large
Load Diff
17743
po-man/pl.po
Normal file
17743
po-man/pl.po
Normal file
File diff suppressed because it is too large
Load Diff
64
po-man/po4a.cfg
Normal file
64
po-man/po4a.cfg
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
# Languages for man page
|
||||
[po4a_langs] de fr pl pt_BR sv uk zh_CN
|
||||
[po4a_paths] procps-man.pot $lang:$lang.po
|
||||
|
||||
[type: man] ../man/free.1 $lang:$lang/free.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/kill.1 $lang:$lang/kill.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/pgrep.1 $lang:$lang/pgrep.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/pidof.1 $lang:$lang/pidof.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/pmap.1 $lang:$lang/pmap.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/pwdx.1 $lang:$lang/pwdx.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/skill.1 $lang:$lang/skill.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/slabtop.1 $lang:$lang/slabtop.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/sysctl.8 $lang:$lang/sysctl.8 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/sysctl.conf.5 $lang:$lang/sysctl.conf.5 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/tload.1 $lang:$lang/tload.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/uptime.1 $lang:$lang/uptime.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/vmstat.8 $lang:$lang/vmstat.8 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/w.1 $lang:$lang/w.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/watch.1 $lang:$lang/watch.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/ps.1 $lang:$lang/ps.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/top.1 $lang:$lang/top.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/procps.3 $lang:$lang/procps.3 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/procps_misc.3 $lang:$lang/procps_misc.3 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../man/procps_pids.3 $lang:$lang/procps_pids.3 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
17068
po-man/pt_BR.po
Normal file
17068
po-man/pt_BR.po
Normal file
File diff suppressed because it is too large
Load Diff
19470
po-man/sv.po
Normal file
19470
po-man/sv.po
Normal file
File diff suppressed because it is too large
Load Diff
16950
po-man/uk.po
Normal file
16950
po-man/uk.po
Normal file
File diff suppressed because it is too large
Load Diff
15996
po-man/zh_CN.po
Normal file
15996
po-man/zh_CN.po
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user