]> granicus.if.org Git - procps-ng/blob - create-man-pot.sh
top: avoid '%Cpu' distortion resulting from keystrokes
[procps-ng] / create-man-pot.sh
1 #!/bin/sh
2 #
3 # Run this command in the top level directory to create the translation template:
4
5 SRCDIR=$(dirname ${0})
6 test -z "${SRCDIR}" && SRCDIR=.
7
8 if [ -d po-man ] ; then
9   echo "po-man: directory exists, will be reused"
10   else
11     mkdir -p po-man
12 fi
13
14 PO_FILES="po-man/*.po"
15
16 po4a-updatepo -f man -m ${SRCDIR}/free.1 \
17                      -m ${SRCDIR}/kill.1 \
18                      -m ${SRCDIR}/pgrep.1 \
19                      -m ${SRCDIR}/pidof.1 \
20                      -m ${SRCDIR}/pkill.1 \
21                      -m ${SRCDIR}/pmap.1 \
22                      -m ${SRCDIR}/pwdx.1 \
23                      -m ${SRCDIR}/skill.1 \
24                      -m ${SRCDIR}/slabtop.1 \
25                      -m ${SRCDIR}/snice.1 \
26                      -m ${SRCDIR}/sysctl.8 \
27                      -m ${SRCDIR}/sysctl.conf.5 \
28                      -m ${SRCDIR}/tload.1 \
29                      -m ${SRCDIR}/uptime.1 \
30                      -m ${SRCDIR}/vmstat.8 \
31                      -m ${SRCDIR}/w.1 \
32                      -m ${SRCDIR}/watch.1 \
33                      -p po-man/template-man.pot ${PO_FILES}
34
35 po4a-updatepo -f man -m ${SRCDIR}/ps/ps.1 \
36                      -p po-man/template-man-ps.pot
37
38 po4a-updatepo -f man -m ${SRCDIR}/top/top.1 \
39                      -p po-man/template-man-top.pot
40
41 # Rename the file according to the version of your (pre-release) tarball.
42 # Send the new file together with a link to the tarball to the TP coordinators:
43 # <coordinator@translationproject.org>