Fix some man-po stuff for distcheck

distcheck failed because the man-po scripts weren't sourcing or
escaping the directories correctly.

This is a partial fix, but at least distcheck is happy.
This commit is contained in:
Craig Small 2014-06-24 22:20:13 +10:00
parent db6381ae04
commit 62dcbe3188
5 changed files with 2150 additions and 2040 deletions

View File

@ -1,3 +1,5 @@
#AUTOMAKE_OPTIONS = subdir-objects
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I$(top_srcdir)/include \
@ -45,6 +47,8 @@ dist_man_MANS = \
EXTRA_DIST = \
autogen.sh \
create-man-pot.sh \
translate-man.sh \
contrib \
COPYING.LIB \
misc/git-version-gen \
@ -117,13 +121,19 @@ dist_procpsng_DATA = \
Documentation/FAQ
BUILT_SOURCES = $(top_srcdir)/.version
clean-local:
-rm man-po/template-man-ps.pot
-rm man-po/template-man-top.pot
-rm man-po/template-man.pot
$(top_srcdir)/.version:
touch $(top_srcdir)/.version
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
./create-man-pot.sh
./translate-man.sh
$(srcdir)/create-man-pot.sh
$(srcdir)/translate-man.sh
get-trans:
echo "Getting the latest translations from translationproject.org..."

View File

@ -2,37 +2,40 @@
#
# Run this command in the top level directory to create the translation template:
SRCDIR=$(dirname ${0})
test -z "${SRCDIR}" && SRCDIR=.
if [ -d man-po ] ; then
echo "man-po: directory exists, will be reused"
else
mkdir -p man-po
fi
po4a-updatepo -f man -m free.1 \
-m kill.1 \
-m pgrep.1 \
-m pidof.1 \
-m pkill.1 \
-m pmap.1 \
-m pwdx.1 \
-m skill.1 \
-m slabtop.1 \
-m snice.1 \
-m sysctl.8 \
-m sysctl.conf.5 \
-m tload.1 \
-m uptime.1 \
-m vmstat.8 \
-m w.1 \
-m watch.1 \
po4a-updatepo -f man -m ${SRCDIR}/free.1 \
-m ${SRCDIR}/kill.1 \
-m ${SRCDIR}/pgrep.1 \
-m ${SRCDIR}/pidof.1 \
-m ${SRCDIR}/pkill.1 \
-m ${SRCDIR}/pmap.1 \
-m ${SRCDIR}/pwdx.1 \
-m ${SRCDIR}/skill.1 \
-m ${SRCDIR}/slabtop.1 \
-m ${SRCDIR}/snice.1 \
-m ${SRCDIR}/sysctl.8 \
-m ${SRCDIR}/sysctl.conf.5 \
-m ${SRCDIR}/tload.1 \
-m ${SRCDIR}/uptime.1 \
-m ${SRCDIR}/vmstat.8 \
-m ${SRCDIR}/w.1 \
-m ${SRCDIR}/watch.1 \
-p man-po/template-man.pot
po4a-updatepo -f man -m ps/ps.1 \
po4a-updatepo -f man -m ${SRCDIR}/ps/ps.1 \
-p man-po/template-man-ps.pot
po4a-updatepo -f man -m top/top.1 \
po4a-updatepo -f man -m ${SRCDIR}/top/top.1 \
-p man-po/template-man-top.pot
# Rename the file according to the version of your (pre-release) tarball.
# Send the new file together with a link to the tarball to the TP coordinators:
# <coordinator@translationproject.org>
# <coordinator@translationproject.org>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff