build-sys: Update build to install translated manpages
Based on the psmisc build system this now installs the translated man pages and seems to survive a make distcheck
This commit is contained in:
parent
4aae73e33c
commit
e780a60e05
3
.gitignore
vendored
3
.gitignore
vendored
@ -31,6 +31,9 @@ ltmain.sh
|
||||
m4/
|
||||
man-po/translated
|
||||
man-po/*.pot
|
||||
man-po/man.stamp
|
||||
man-po/??/*
|
||||
man-po/??_??/*
|
||||
Makefile
|
||||
Makefile.in
|
||||
missing
|
||||
|
18
configure.ac
18
configure.ac
@ -43,12 +43,18 @@ AC_PROG_LN_S
|
||||
PKG_PROG_PKG_CONFIG
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
AC_PATH_PROG(PO4A, po4a)
|
||||
if test "xPO4A" = "x" ; then
|
||||
AM_CONDITIONAL(USE_PO4A, false)
|
||||
else
|
||||
AM_CONDITIONAL(USE_PO4A, true)
|
||||
fi
|
||||
AC_DEFUN([PROCPS_PROG_PO4A], [
|
||||
AC_REQUIRE([AM_NLS])
|
||||
AC_CHECK_PROGS([PO4A], [po4a])
|
||||
AS_IF([test "$USE_NLS" = "yes" && test -n "$PO4A"], [
|
||||
USE_PO4A=yes
|
||||
], [
|
||||
USE_PO4A=no
|
||||
])
|
||||
AC_SUBST([USE_PO4A])
|
||||
])
|
||||
PROCPS_PROG_PO4A
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_MAJOR
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h langinfo.h libintl.h limits.h locale.h netinet/in.h stdint.h stdio_ext.h stdlib.h string.h sys/file.h sys/ioctl.h sys/param.h sys/time.h termios.h unistd.h utmp.h utmpx.h values.h wchar.h wctype.h])
|
||||
|
1
man-po/.gitignore
vendored
1
man-po/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.pot
|
@ -48,30 +48,42 @@ PO4A_OPTS = --srcdir $(srcdir) --destdir $(CURDIR) \
|
||||
--package-name $(PACKAGE) --package-version $(VERSION) \
|
||||
--msgid-bugs-address "Procps list <procps@freelists.org>"
|
||||
|
||||
if USE_PO4A
|
||||
all-local: all-local-@USE_PO4A@
|
||||
|
||||
update-po:
|
||||
$(PO4A_V) $(PO4A) $(PO4A_OPTS) --force $(srcdir)/po4a.cfg
|
||||
all-local-no:
|
||||
all-local-yes: man.stamp
|
||||
|
||||
#clean-local:
|
||||
# rm -rf translated/$(LINGUAS_DIST)
|
||||
#
|
||||
# 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 $@
|
||||
|
||||
endif
|
||||
|
||||
install-data-local:
|
||||
install-data-local: install-data-local-@USE_PO4A@
|
||||
|
||||
install-data-local-no:
|
||||
install-data-local-yes:
|
||||
for lang in $(LINGUAS) ; do \
|
||||
files=""; \
|
||||
for trans in $(notdir $(dist_man_MANS)); do \
|
||||
if [ -f $(CURDIR)/translated/$$lang/$$trans ]; then \
|
||||
files="$$files $(CURDIR)/translated/$$lang/$$trans"; \
|
||||
elif [ -f $(srcdir)/translated/$$lang/$$trans ]; then \
|
||||
files="$$files $(srcdir)/translated/$$lang/$$trans"; \
|
||||
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) install-man \
|
||||
@ -79,3 +91,31 @@ install-data-local:
|
||||
man_MANS="" \
|
||||
dist_man_MANS="$$files"; \
|
||||
done
|
||||
|
||||
uninstall-local: uninstall-local-@USE_PO4A@
|
||||
|
||||
uninstall-local-no:
|
||||
uninstall-local-yes:
|
||||
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) 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
|
||||
|
3816
man-po/de.po
3816
man-po/de.po
File diff suppressed because it is too large
Load Diff
3818
man-po/fr.po
3818
man-po/fr.po
File diff suppressed because it is too large
Load Diff
3814
man-po/pl.po
3814
man-po/pl.po
File diff suppressed because it is too large
Load Diff
@ -1,53 +1,56 @@
|
||||
|
||||
# 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] ../free.1 $lang:translated/$lang/free.1 \
|
||||
[type: man] ../free.1 $lang:$lang/free.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../kill.1 $lang:translated/$lang/kill.1 \
|
||||
[type: man] ../kill.1 $lang:$lang/kill.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../pgrep.1 $lang:translated/$lang/pgrep.1 \
|
||||
[type: man] ../pgrep.1 $lang:$lang/pgrep.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../pidof.1 $lang:translated/$lang/pidof.1 \
|
||||
[type: man] ../pidof.1 $lang:$lang/pidof.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../pmap.1 $lang:translated/$lang/pmap.1 \
|
||||
[type: man] ../pmap.1 $lang:$lang/pmap.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../pwdx.1 $lang:translated/$lang/pwdx.1 \
|
||||
[type: man] ../pwdx.1 $lang:$lang/pwdx.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../skill.1 $lang:translated/$lang/skill.1 \
|
||||
[type: man] ../skill.1 $lang:$lang/skill.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../slabtop.1 $lang:translated/$lang/slabtop.1 \
|
||||
[type: man] ../slabtop.1 $lang:$lang/slabtop.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../sysctl.8 $lang:translated/$lang/sysctl.8 \
|
||||
[type: man] ../sysctl.8 $lang:$lang/sysctl.8 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../sysctl.conf.5 $lang:translated/$lang/sysctl.conf.5 \
|
||||
[type: man] ../sysctl.conf.5 $lang:$lang/sysctl.conf.5 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../tload.1 $lang:translated/$lang/tload.1 \
|
||||
[type: man] ../tload.1 $lang:$lang/tload.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../uptime.1 $lang:translated/$lang/uptime.1 \
|
||||
[type: man] ../uptime.1 $lang:$lang/uptime.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../vmstat.8 $lang:translated/$lang/vmstat.8 \
|
||||
[type: man] ../vmstat.8 $lang:$lang/vmstat.8 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../w.1 $lang:translated/$lang/w.1 \
|
||||
[type: man] ../w.1 $lang:$lang/w.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../watch.1 $lang:translated/$lang/watch.1 \
|
||||
[type: man] ../watch.1 $lang:$lang/watch.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../ps/ps.1 $lang:translated/$lang/ps.1 \
|
||||
[type: man] ../ps/ps.1 $lang:$lang/ps.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
|
||||
[type: man] ../top/top.1 $lang:translated/$lang/top.1 \
|
||||
[type: man] ../top/top.1 $lang:$lang/top.1 \
|
||||
add_$lang:?add_$lang/$lang.add opt:"-k 80"
|
||||
#../watch.1
|
||||
|
3816
man-po/pt_BR.po
3816
man-po/pt_BR.po
File diff suppressed because it is too large
Load Diff
3817
man-po/sv.po
3817
man-po/sv.po
File diff suppressed because it is too large
Load Diff
3816
man-po/uk.po
3816
man-po/uk.po
File diff suppressed because it is too large
Load Diff
3575
man-po/zh_CN.po
3575
man-po/zh_CN.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user