summaryrefslogtreecommitdiff
path: root/create-man-pot.sh
diff options
context:
space:
mode:
authorCraig Small <csmall@enc.com.au>2014-06-24 22:20:13 +1000
committerCraig Small <csmall@enc.com.au>2014-06-24 22:20:13 +1000
commit62dcbe31883351ff12c5e04e7787248a8c0e8027 (patch)
tree395db3490f2a6fc43e358ba2049b2bd82d0e16a9 /create-man-pot.sh
parentdb6381ae043ffd4aa9fd5788f434af155ae096f1 (diff)
downloadprocps-ng-62dcbe31883351ff12c5e04e7787248a8c0e8027.tar.gz
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.
Diffstat (limited to 'create-man-pot.sh')
-rwxr-xr-xcreate-man-pot.sh43
1 files changed, 23 insertions, 20 deletions
diff --git a/create-man-pot.sh b/create-man-pot.sh
index c934180..c7e3000 100755
--- a/create-man-pot.sh
+++ b/create-man-pot.sh
@@ -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> \ No newline at end of file
+# <coordinator@translationproject.org>