3 # Run this script in the top level directory to create the translated man pages:
5 # Once the TP module has been created, this commands get the latest po files:
6 # echo "Getting the latest translations from translationproject.org..."
7 # rsync -Lrtvz translationproject.org::tp/latest/procps-ng-man/ man-po
8 # rsync -Lrtvz translationproject.org::tp/latest/procps-ng-man-ps/ man-po/ps
9 # rsync -Lrtvz translationproject.org::tp/latest/procps-ng-man-top/ man-po/top
11 if [ -d man-po ] ; then
12 echo "man-po: directory exists, will be reused"
14 mkdir -p man-po/{ps,top}
20 if [ $langfiles = '*.po' ] ; then
21 echo No man po files found
26 if [ -d ${lang%.*} ] ; then
27 echo "${lang%.*}: directory exists, will be reused"
29 mkdir -p ${lang%.*}/{man1,man5,man8}
31 po4a-translate -f man -m ../free.1 -p ${lang} -l ${lang%.*}/man1/free.1
32 po4a-translate -f man -m ../kill.1 -p ${lang} -l ${lang%.*}/man1/kill.1
33 po4a-translate -f man -m ../pgrep.1 -p ${lang} -l ${lang%.*}/man1/pgrep.1
34 po4a-translate -f man -m ../pidof.1 -p ${lang} -l ${lang%.*}/man1/pidof.1
35 po4a-translate -f man -m ../pkill.1 -p ${lang} -l ${lang%.*}/man1/pkill.1
36 po4a-translate -f man -m ../pmap.1 -p ${lang} -l ${lang%.*}/man1/pmap.1
37 po4a-translate -f man -m ../pwdx.1 -p ${lang} -l ${lang%.*}/man1/pwdx.1
38 po4a-translate -f man -m ../skill.1 -p ${lang} -l ${lang%.*}/man1/skill.1
39 po4a-translate -f man -m ../slabtop.1 -p ${lang} -l ${lang%.*}/man1/slabtop.1
40 po4a-translate -f man -m ../sysctl.8 -p ${lang} -l ${lang%.*}/man8/sysctl.8
41 po4a-translate -f man -m ../sysctl.conf.5 -p ${lang} -l ${lang%.*}/man5/sysctl.conf.5
42 po4a-translate -f man -m ../tload.1 -p ${lang} -l ${lang%.*}/man1/tload.1
43 po4a-translate -f man -m ../uptime.1 -p ${lang} -l ${lang%.*}/man1/uptime.1
44 po4a-translate -f man -m ../vmstat.8 -p ${lang} -l ${lang%.*}/man8/vmstat.8
45 po4a-translate -f man -m ../w.1 -p ${lang} -l ${lang%.*}/man1/w.1
46 po4a-translate -f man -m ../watch.1 -p ${lang} -l ${lang%.*}/man1/watch.1
47 if [ -f ps/${lang} ] ; then
48 po4a-translate -f man -m ../ps/ps.1 -p ps/${lang} -l ${lang%.*}/man1/ps.1
50 if [ -f top/${lang} ] ; then
51 po4a-translate -f man -m ../top/top.1 -p top/${lang} -l ${lang%.*}/man1/top.1