• R/O
  • HTTP
  • SSH
  • HTTPS

jm: Commit

翻訳ドキュメント管理用


Commit MetaInfo

Revision62bf98a764e7b4c92b0e7c1ce3e65ef42845f960 (tree)
Time2021-09-07 21:04:00
Authormatsuand <30614168+matsuand@user...>
Commitermatsuand

Log Message

util-linux-2.37.2: Add temporary sources to build from the asciidoc documents.

Change Summary

Incremental Difference

--- /dev/null
+++ b/manual/util-linux/ascdoc.mk
@@ -0,0 +1,70 @@
1+#
2+# This is a temporary Makefile for util-linux
3+#
4+# 利用手順:
5+# 1) 処理対象とする util-linux ソースをあらかじめ
6+# 準備して、 そのディレクトリトップを SRCDIR に
7+# 設定。
8+# 2) make -f ascdoc.mk 実行。
9+# --> po4a/ascdoc/util-linux-man.pot,
10+# po4a/ascdoc/ja.po が生成される。
11+# --> 最終成果である man ページファイルは
12+# po4a/ascdoc/ja/ja 以下に生成される。
13+# 3) make -f ascdoc.mk msgmerge 実行。
14+# --> 上記 ja.po に対して、
15+# 従来の man ファイルを 1 次ソースとする
16+# po4a ja.po ファイルの内容がマージされる。
17+# 4) 以降は、po4a/ascdoc/ja.po を編集
18+# 5) 適宜 make -f ascdoc.mk を実行して、
19+# po4a/ascdoc/ja/ja 以下の man ファイル確認。
20+#
21+# ex.) SRCDIR = ~/src/util-linux-2.37.2
22+SRCDIR =
23+
24+ASCDOC_DIRS = \
25+ disk-utils \
26+ lib \
27+ libblkid \
28+ libuuid \
29+ login-utils \
30+ man-common \
31+ misc-utils \
32+ schedutils \
33+ sys-utils \
34+ term-utils \
35+ text-utils
36+
37+.PHONY: all copy_ascdocs
38+
39+all: copy_ascdocs
40+ @cd po4a/ascdoc && $(MAKE) --no-print-directory -f Makefile.ja
41+%:
42+ @cd po4a/ascdoc && $(MAKE) --no-print-directory -f Makefile.ja $@
43+
44+copy_ascdocs: copy_ascdocs.stamp
45+copy_ascdocs.stamp:
46+ @if test -z $(SRCDIR); then \
47+ echo SRCDIR should be set correctly && exit 1 ; \
48+ elif test ! -d $(SRCDIR); then \
49+ echo SRCDIR cannot be found && exit 1; \
50+ fi
51+ @for d in $(ASCDOC_DIRS); do \
52+ if test ! -d $(SRCDIR)/$$d; then \
53+ echo $(SRCDIR)/$$d cannot be found && exit 1; \
54+ fi ;\
55+ mkdir -p original/$$d ;\
56+ if test "$$d" = "libuuid"; then \
57+ mkdir -p original/$$d/man ;\
58+ cp -pR $(SRCDIR)/$$d/man/*.adoc original/$$d/man ;\
59+ else \
60+ cp -pR $(SRCDIR)/$$d/*.adoc original/$$d ;\
61+ fi \
62+ done
63+ @touch $@
64+
65+.PHONY: clean distclean
66+clean:
67+ rm -f copy_ascdocs.stamp
68+ rm -f po4a/ascdoc/{po4a-gen,gen-mans}.stamp
69+distclean: clean
70+ rm -fr $(addprefix original/,$(ASCDOC_DIRS))
--- /dev/null
+++ b/manual/util-linux/po4a/ascdoc/Makefile.ja
@@ -0,0 +1,77 @@
1+#
2+# This is a temporary Makefile for util-linux
3+#
4+
5+PACKAGE_NAME = util-linux
6+
7+THRESH = 0
8+EXTFLAGS =
9+PO4AFLAGS += -M UTF-8 -k $(THRESH) $(EXTFLAGS)
10+LANGS = ja
11+
12+PO4A = po4a
13+PO_FILES = $(wildcard *.po)
14+PO_LANGS = $(PO_FILES:.po=)
15+THRESH = 0
16+EXTFLAGS =
17+PO4AFLAGS += -M UTF-8 -k $(THRESH) $(EXTFLAGS)
18+
19+ADOC_FILES = $(wildcard ja/*.adoc)
20+PO_STAMPS = po4a-gen.stamp
21+MAN_SECTIONS = 1 3 5 8
22+
23+abs_builddir = .
24+
25+asciidoc_man_cmd = asciidoctor \
26+ -b manpage \
27+ -a 'VERSION=$(VERSION)' \
28+ -a 'ADJTIME_PATH=$(ADJTIME_PATH)'
29+
30+all: translate
31+translate: gen-mans
32+
33+$(PO_STAMPS): $(PO_FILES)
34+ @echo 'po4a: generate man-pages translations'
35+ $(AM_V_GEN) $(PO4A) $(PO4AFLAGS) -v --previous po4a.cfg
36+ @touch $@
37+
38+gen-trans: $(PO_STAMPS)
39+
40+gen-mans: gen-trans gen-mans.stamp
41+gen-mans.stamp: $(ADOC_FILES)
42+ @for l in $(PO_LANGS); do \
43+ gendir="$(abs_builddir)/$$l"; \
44+ genfiles=`echo $${gendir}/*.adoc`; \
45+ if test "$$genfiles" != '$${gendir}/*.adoc'; then \
46+ for file in $${genfiles}; do \
47+ manname=`echo $$file | sed -e 's|^.*/||' -e 's|\.adoc||'`; \
48+ test -f $${gendir}/$${manname} || { \
49+ echo " GEN " $$l ": " $$manname && \
50+ $(asciidoc_man_cmd) \
51+ --base-dir=$${gendir} \
52+ --destination-dir $${gendir} $${file}; \
53+ }; \
54+ done; \
55+ fi; \
56+ done
57+ @touch $@
58+
59+# man ベースの ja.po の内容を、 asciidoc ベースの ja.po へ
60+# マージする。本 Makefile.ja の呼び出しは、po4a/ascdoc
61+# ディレクトリ (つまり当 makefile があるディレクトリ) が
62+# カレントであることを前提にしている。
63+msgmerge: $(PO_STAMPS)
64+ @cp -p ja.po{,.tmp}
65+ msgmerge ../man1/ja.po ja.po.tmp -o ja.po
66+ msgmerge ../man3/ja.po ja.po.tmp -o ja.po
67+ msgmerge ../man5/ja.po ja.po.tmp -o ja.po
68+ msgmerge ../man8/ja.po ja.po.tmp -o ja.po
69+ @rm -f ja.po.tmp
70+
71+stat:
72+ @for po in $(PO_FILES); do \
73+ echo -n $$po": "; \
74+ msgfmt --statistics -o /dev/null $$po; \
75+ done
76+
77+.PHONY: adoc gen-trans gen-mans msgmerge stat
--- /dev/null
+++ b/manual/util-linux/po4a/ascdoc/po4a.cfg
@@ -0,0 +1,158 @@
1+#
2+# This is derived from po-man/po4a.cfg, which is for LANG=de.
3+# This is a modified version for the linuxjm project.
4+# Note that the directory which contains the original adoc sources
5+# are changed suitable for this project to keep the sources under the
6+# 'original' directory.
7+# This is temporary file so that this should not be included in the
8+# upstream sources.
9+#
10+
11+[po4a_langs] ja
12+[po4a_paths] util-linux-man.pot $lang:$lang.po
13+
14+[type:asciidoc] ../../original/man-common/bugreports.adoc $lang:$lang/man-common/bugreports.adoc
15+[type:asciidoc] ../../original/man-common/footer-config.adoc $lang:$lang/man-common/footer-config.adoc
16+[type:asciidoc] ../../original/man-common/footer-lib.adoc $lang:$lang/man-common/footer-lib.adoc
17+[type:asciidoc] ../../original/man-common/footer.adoc $lang:$lang/man-common/footer.adoc
18+[type:asciidoc] ../../original/man-common/translation.adoc $lang:$lang/man-common/translation.adoc
19+
20+[type:asciidoc] ../../original/disk-utils/addpart.8.adoc $lang:$lang/addpart.8.adoc
21+[type:asciidoc] ../../original/disk-utils/blockdev.8.adoc $lang:$lang/blockdev.8.adoc
22+[type:asciidoc] ../../original/disk-utils/cfdisk.8.adoc $lang:$lang/cfdisk.8.adoc
23+[type:asciidoc] ../../original/disk-utils/delpart.8.adoc $lang:$lang/delpart.8.adoc
24+[type:asciidoc] ../../original/disk-utils/fdformat.8.adoc $lang:$lang/fdformat.8.adoc
25+[type:asciidoc] ../../original/disk-utils/fdisk.8.adoc $lang:$lang/fdisk.8.adoc
26+[type:asciidoc] ../../original/disk-utils/fsck.8.adoc $lang:$lang/fsck.8.adoc
27+[type:asciidoc] ../../original/disk-utils/fsck.cramfs.8.adoc $lang:$lang/fsck.cramfs.8.adoc
28+[type:asciidoc] ../../original/disk-utils/fsck.minix.8.adoc $lang:$lang/fsck.minix.8.adoc
29+[type:asciidoc] ../../original/disk-utils/isosize.8.adoc $lang:$lang/isosize.8.adoc
30+[type:asciidoc] ../../original/disk-utils/mkfs.8.adoc $lang:$lang/mkfs.8.adoc
31+[type:asciidoc] ../../original/disk-utils/mkfs.bfs.8.adoc $lang:$lang/mkfs.bfs.8.adoc
32+[type:asciidoc] ../../original/disk-utils/mkfs.cramfs.8.adoc $lang:$lang/mkfs.cramfs.8.adoc
33+[type:asciidoc] ../../original/disk-utils/mkfs.minix.8.adoc $lang:$lang/mkfs.minix.8.adoc
34+[type:asciidoc] ../../original/disk-utils/mkswap.8.adoc $lang:$lang/mkswap.8.adoc
35+[type:asciidoc] ../../original/disk-utils/partx.8.adoc $lang:$lang/partx.8.adoc
36+[type:asciidoc] ../../original/disk-utils/raw.8.adoc $lang:$lang/raw.8.adoc
37+[type:asciidoc] ../../original/disk-utils/resizepart.8.adoc $lang:$lang/resizepart.8.adoc
38+[type:asciidoc] ../../original/disk-utils/sfdisk.8.adoc $lang:$lang/sfdisk.8.adoc
39+[type:asciidoc] ../../original/disk-utils/swaplabel.8.adoc $lang:$lang/swaplabel.8.adoc
40+
41+[type:asciidoc] ../../original/lib/terminal-colors.d.5.adoc $lang:$lang/terminal-colors.d.5.adoc
42+
43+[type:asciidoc] ../../original/libblkid/libblkid.3.adoc $lang:$lang/libblkid.3.adoc
44+
45+[type:asciidoc] ../../original/libuuid/man/uuid.3.adoc $lang:$lang/uuid.3.adoc
46+[type:asciidoc] ../../original/libuuid/man/uuid_clear.3.adoc $lang:$lang/uuid_clear.3.adoc
47+[type:asciidoc] ../../original/libuuid/man/uuid_compare.3.adoc $lang:$lang/uuid_compare.3.adoc
48+[type:asciidoc] ../../original/libuuid/man/uuid_copy.3.adoc $lang:$lang/uuid_copy.3.adoc
49+[type:asciidoc] ../../original/libuuid/man/uuid_generate.3.adoc $lang:$lang/uuid_generate.3.adoc
50+[type:asciidoc] ../../original/libuuid/man/uuid_is_null.3.adoc $lang:$lang/uuid_is_null.3.adoc
51+[type:asciidoc] ../../original/libuuid/man/uuid_parse.3.adoc $lang:$lang/uuid_parse.3.adoc
52+[type:asciidoc] ../../original/libuuid/man/uuid_time.3.adoc $lang:$lang/uuid_time.3.adoc
53+[type:asciidoc] ../../original/libuuid/man/uuid_unparse.3.adoc $lang:$lang/uuid_unparse.3.adoc
54+
55+[type:asciidoc] ../../original/login-utils/chfn.1.adoc $lang:$lang/chfn.1.adoc
56+[type:asciidoc] ../../original/login-utils/chsh.1.adoc $lang:$lang/chsh.1.adoc
57+[type:asciidoc] ../../original/login-utils/last.1.adoc $lang:$lang/last.1.adoc
58+[type:asciidoc] ../../original/login-utils/login.1.adoc $lang:$lang/login.1.adoc
59+[type:asciidoc] ../../original/login-utils/lslogins.1.adoc $lang:$lang/lslogins.1.adoc
60+[type:asciidoc] ../../original/login-utils/newgrp.1.adoc $lang:$lang/newgrp.1.adoc
61+[type:asciidoc] ../../original/login-utils/nologin.8.adoc $lang:$lang/nologin.8.adoc
62+[type:asciidoc] ../../original/login-utils/runuser.1.adoc $lang:$lang/runuser.1.adoc
63+[type:asciidoc] ../../original/login-utils/su.1.adoc $lang:$lang/su.1.adoc
64+[type:asciidoc] ../../original/login-utils/sulogin.8.adoc $lang:$lang/sulogin.8.adoc
65+[type:asciidoc] ../../original/login-utils/utmpdump.1.adoc $lang:$lang/utmpdump.1.adoc
66+[type:asciidoc] ../../original/login-utils/vipw.8.adoc $lang:$lang/vipw.8.adoc
67+
68+[type:asciidoc] ../../original/misc-utils/blkid.8.adoc $lang:$lang/blkid.8.adoc
69+[type:asciidoc] ../../original/misc-utils/cal.1.adoc $lang:$lang/cal.1.adoc
70+[type:asciidoc] ../../original/misc-utils/fincore.1.adoc $lang:$lang/fincore.1.adoc
71+[type:asciidoc] ../../original/misc-utils/findfs.8.adoc $lang:$lang/findfs.8.adoc
72+[type:asciidoc] ../../original/misc-utils/findmnt.8.adoc $lang:$lang/findmnt.8.adoc
73+[type:asciidoc] ../../original/misc-utils/getopt.1.adoc $lang:$lang/getopt.1.adoc
74+[type:asciidoc] ../../original/misc-utils/hardlink.1.adoc $lang:$lang/hardlink.1.adoc
75+[type:asciidoc] ../../original/misc-utils/kill.1.adoc $lang:$lang/kill.1.adoc
76+[type:asciidoc] ../../original/misc-utils/logger.1.adoc $lang:$lang/logger.1.adoc
77+[type:asciidoc] ../../original/misc-utils/look.1.adoc $lang:$lang/look.1.adoc
78+[type:asciidoc] ../../original/misc-utils/lsblk.8.adoc $lang:$lang/lsblk.8.adoc
79+[type:asciidoc] ../../original/misc-utils/lslocks.8.adoc $lang:$lang/lslocks.8.adoc
80+[type:asciidoc] ../../original/misc-utils/mcookie.1.adoc $lang:$lang/mcookie.1.adoc
81+[type:asciidoc] ../../original/misc-utils/namei.1.adoc $lang:$lang/namei.1.adoc
82+[type:asciidoc] ../../original/misc-utils/rename.1.adoc $lang:$lang/rename.1.adoc
83+[type:asciidoc] ../../original/misc-utils/uuidd.8.adoc $lang:$lang/uuidd.8.adoc
84+[type:asciidoc] ../../original/misc-utils/uuidgen.1.adoc $lang:$lang/uuidgen.1.adoc
85+[type:asciidoc] ../../original/misc-utils/uuidparse.1.adoc $lang:$lang/uuidparse.1.adoc
86+[type:asciidoc] ../../original/misc-utils/whereis.1.adoc $lang:$lang/whereis.1.adoc
87+[type:asciidoc] ../../original/misc-utils/wipefs.8.adoc $lang:$lang/wipefs.8.adoc
88+
89+[type:asciidoc] ../../original/schedutils/chrt.1.adoc $lang:$lang/chrt.1.adoc
90+[type:asciidoc] ../../original/schedutils/ionice.1.adoc $lang:$lang/ionice.1.adoc
91+[type:asciidoc] ../../original/schedutils/taskset.1.adoc $lang:$lang/taskset.1.adoc
92+[type:asciidoc] ../../original/schedutils/uclampset.1.adoc $lang:$lang/uclampset.1.adoc
93+
94+[type:asciidoc] ../../original/sys-utils/adjtime_config.5.adoc $lang:$lang/adjtime_config.5.adoc
95+[type:asciidoc] ../../original/sys-utils/blkdiscard.8.adoc $lang:$lang/blkdiscard.8.adoc
96+[type:asciidoc] ../../original/sys-utils/blkzone.8.adoc $lang:$lang/blkzone.8.adoc
97+[type:asciidoc] ../../original/sys-utils/chcpu.8.adoc $lang:$lang/chcpu.8.adoc
98+[type:asciidoc] ../../original/sys-utils/chmem.8.adoc $lang:$lang/chmem.8.adoc
99+[type:asciidoc] ../../original/sys-utils/choom.1.adoc $lang:$lang/choom.1.adoc
100+[type:asciidoc] ../../original/sys-utils/ctrlaltdel.8.adoc $lang:$lang/ctrlaltdel.8.adoc
101+[type:asciidoc] ../../original/sys-utils/dmesg.1.adoc $lang:$lang/dmesg.1.adoc
102+[type:asciidoc] ../../original/sys-utils/eject.1.adoc $lang:$lang/eject.1.adoc
103+[type:asciidoc] ../../original/sys-utils/fallocate.1.adoc $lang:$lang/fallocate.1.adoc
104+[type:asciidoc] ../../original/sys-utils/flock.1.adoc $lang:$lang/flock.1.adoc
105+[type:asciidoc] ../../original/sys-utils/fsfreeze.8.adoc $lang:$lang/fsfreeze.8.adoc
106+[type:asciidoc] ../../original/sys-utils/fstab.5.adoc $lang:$lang/fstab.5.adoc
107+[type:asciidoc] ../../original/sys-utils/fstrim.8.adoc $lang:$lang/fstrim.8.adoc
108+[type:asciidoc] ../../original/sys-utils/hwclock.8.adoc $lang:$lang/hwclock.8.adoc
109+[type:asciidoc] ../../original/sys-utils/ipcmk.1.adoc $lang:$lang/ipcmk.1.adoc
110+[type:asciidoc] ../../original/sys-utils/ipcrm.1.adoc $lang:$lang/ipcrm.1.adoc
111+[type:asciidoc] ../../original/sys-utils/ipcs.1.adoc $lang:$lang/ipcs.1.adoc
112+[type:asciidoc] ../../original/sys-utils/irqtop.1.adoc $lang:$lang/irqtop.1.adoc
113+[type:asciidoc] ../../original/sys-utils/ldattach.8.adoc $lang:$lang/ldattach.8.adoc
114+[type:asciidoc] ../../original/sys-utils/losetup.8.adoc $lang:$lang/losetup.8.adoc
115+[type:asciidoc] ../../original/sys-utils/lscpu.1.adoc $lang:$lang/lscpu.1.adoc
116+[type:asciidoc] ../../original/sys-utils/lsipc.1.adoc $lang:$lang/lsipc.1.adoc
117+[type:asciidoc] ../../original/sys-utils/lsirq.1.adoc $lang:$lang/lsirq.1.adoc
118+[type:asciidoc] ../../original/sys-utils/lsmem.1.adoc $lang:$lang/lsmem.1.adoc
119+[type:asciidoc] ../../original/sys-utils/lsns.8.adoc $lang:$lang/lsns.8.adoc
120+[type:asciidoc] ../../original/sys-utils/mount.8.adoc $lang:$lang/mount.8.adoc
121+[type:asciidoc] ../../original/sys-utils/mountpoint.1.adoc $lang:$lang/mountpoint.1.adoc
122+[type:asciidoc] ../../original/sys-utils/nsenter.1.adoc $lang:$lang/nsenter.1.adoc
123+[type:asciidoc] ../../original/sys-utils/pivot_root.8.adoc $lang:$lang/pivot_root.8.adoc
124+[type:asciidoc] ../../original/sys-utils/prlimit.1.adoc $lang:$lang/prlimit.1.adoc
125+[type:asciidoc] ../../original/sys-utils/readprofile.8.adoc $lang:$lang/readprofile.8.adoc
126+[type:asciidoc] ../../original/sys-utils/renice.1.adoc $lang:$lang/renice.1.adoc
127+[type:asciidoc] ../../original/sys-utils/rfkill.8.adoc $lang:$lang/rfkill.8.adoc
128+[type:asciidoc] ../../original/sys-utils/rtcwake.8.adoc $lang:$lang/rtcwake.8.adoc
129+[type:asciidoc] ../../original/sys-utils/setarch.8.adoc $lang:$lang/setarch.8.adoc
130+[type:asciidoc] ../../original/sys-utils/setpriv.1.adoc $lang:$lang/setpriv.1.adoc
131+[type:asciidoc] ../../original/sys-utils/setsid.1.adoc $lang:$lang/setsid.1.adoc
132+[type:asciidoc] ../../original/sys-utils/swapon.8.adoc $lang:$lang/swapon.8.adoc
133+[type:asciidoc] ../../original/sys-utils/switch_root.8.adoc $lang:$lang/switch_root.8.adoc
134+[type:asciidoc] ../../original/sys-utils/tunelp.8.adoc $lang:$lang/tunelp.8.adoc
135+[type:asciidoc] ../../original/sys-utils/umount.8.adoc $lang:$lang/umount.8.adoc
136+[type:asciidoc] ../../original/sys-utils/unshare.1.adoc $lang:$lang/unshare.1.adoc
137+[type:asciidoc] ../../original/sys-utils/wdctl.8.adoc $lang:$lang/wdctl.8.adoc
138+[type:asciidoc] ../../original/sys-utils/zramctl.8.adoc $lang:$lang/zramctl.8.adoc
139+
140+[type:asciidoc] ../../original/term-utils/agetty.8.adoc $lang:$lang/agetty.8.adoc
141+[type:asciidoc] ../../original/term-utils/mesg.1.adoc $lang:$lang/mesg.1.adoc
142+[type:asciidoc] ../../original/term-utils/script.1.adoc $lang:$lang/script.1.adoc
143+[type:asciidoc] ../../original/term-utils/scriptlive.1.adoc $lang:$lang/scriptlive.1.adoc
144+[type:asciidoc] ../../original/term-utils/scriptreplay.1.adoc $lang:$lang/scriptreplay.1.adoc
145+[type:asciidoc] ../../original/term-utils/setterm.1.adoc $lang:$lang/setterm.1.adoc
146+[type:asciidoc] ../../original/term-utils/wall.1.adoc $lang:$lang/wall.1.adoc
147+[type:asciidoc] ../../original/term-utils/write.1.adoc $lang:$lang/write.1.adoc
148+
149+[type:asciidoc] ../../original/text-utils/col.1.adoc $lang:$lang/col.1.adoc
150+[type:asciidoc] ../../original/text-utils/colcrt.1.adoc $lang:$lang/colcrt.1.adoc
151+[type:asciidoc] ../../original/text-utils/colrm.1.adoc $lang:$lang/colrm.1.adoc
152+[type:asciidoc] ../../original/text-utils/column.1.adoc $lang:$lang/column.1.adoc
153+[type:asciidoc] ../../original/text-utils/hexdump.1.adoc $lang:$lang/hexdump.1.adoc
154+[type:asciidoc] ../../original/text-utils/line.1.adoc $lang:$lang/line.1.adoc
155+[type:asciidoc] ../../original/text-utils/more.1.adoc $lang:$lang/more.1.adoc
156+[type:asciidoc] ../../original/text-utils/pg.1.adoc $lang:$lang/pg.1.adoc
157+[type:asciidoc] ../../original/text-utils/rev.1.adoc $lang:$lang/rev.1.adoc
158+[type:asciidoc] ../../original/text-utils/ul.1.adoc $lang:$lang/ul.1.adoc
Show on old repository browser