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 = \ AM_CPPFLAGS = \
-include $(top_builddir)/config.h \ -include $(top_builddir)/config.h \
-I$(top_srcdir)/include \ -I$(top_srcdir)/include \
@ -45,6 +47,8 @@ dist_man_MANS = \
EXTRA_DIST = \ EXTRA_DIST = \
autogen.sh \ autogen.sh \
create-man-pot.sh \
translate-man.sh \
contrib \ contrib \
COPYING.LIB \ COPYING.LIB \
misc/git-version-gen \ misc/git-version-gen \
@ -117,13 +121,19 @@ dist_procpsng_DATA = \
Documentation/FAQ Documentation/FAQ
BUILT_SOURCES = $(top_srcdir)/.version 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: $(top_srcdir)/.version:
touch $(top_srcdir)/.version touch $(top_srcdir)/.version
echo $(VERSION) > $@-t && mv $@-t $@ echo $(VERSION) > $@-t && mv $@-t $@
dist-hook: dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version echo $(VERSION) > $(distdir)/.tarball-version
./create-man-pot.sh $(srcdir)/create-man-pot.sh
./translate-man.sh $(srcdir)/translate-man.sh
get-trans: get-trans:
echo "Getting the latest translations from translationproject.org..." 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: # 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 if [ -d man-po ] ; then
echo "man-po: directory exists, will be reused" echo "man-po: directory exists, will be reused"
else else
mkdir -p man-po mkdir -p man-po
fi fi
po4a-updatepo -f man -m free.1 \ po4a-updatepo -f man -m ${SRCDIR}/free.1 \
-m kill.1 \ -m ${SRCDIR}/kill.1 \
-m pgrep.1 \ -m ${SRCDIR}/pgrep.1 \
-m pidof.1 \ -m ${SRCDIR}/pidof.1 \
-m pkill.1 \ -m ${SRCDIR}/pkill.1 \
-m pmap.1 \ -m ${SRCDIR}/pmap.1 \
-m pwdx.1 \ -m ${SRCDIR}/pwdx.1 \
-m skill.1 \ -m ${SRCDIR}/skill.1 \
-m slabtop.1 \ -m ${SRCDIR}/slabtop.1 \
-m snice.1 \ -m ${SRCDIR}/snice.1 \
-m sysctl.8 \ -m ${SRCDIR}/sysctl.8 \
-m sysctl.conf.5 \ -m ${SRCDIR}/sysctl.conf.5 \
-m tload.1 \ -m ${SRCDIR}/tload.1 \
-m uptime.1 \ -m ${SRCDIR}/uptime.1 \
-m vmstat.8 \ -m ${SRCDIR}/vmstat.8 \
-m w.1 \ -m ${SRCDIR}/w.1 \
-m watch.1 \ -m ${SRCDIR}/watch.1 \
-p man-po/template-man.pot -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 -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 -p man-po/template-man-top.pot
# Rename the file according to the version of your (pre-release) tarball. # 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: # 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