• R/O
  • HTTP
  • SSH
  • HTTPS

LDP_man-pages: 提交


Commit MetaInfo

修订版3bfc809d4fe29ff41359649b89c1b7f3abb3ab45 (tree)
时间2012-05-28 05:43:06
作者Akihiro MOTOKI <amotoki@gmai...>
CommiterAkihiro MOTOKI

Log Message

(split) LDP: Add target "release" to Makefile.

This Makefile target generates release pages from po files.
Files with over 80% translations are released.

更改概述

差异

--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
11 PERKAMON_DIR = perkamon
22 LANGS = ja
33 THRESH = 100
4+THRESH_REL = 80
45 FLAGS ?=
56 PO4AFLAGS ?= -k $(THRESH) $(FLAGS)
67
@@ -11,10 +12,33 @@ translate: jm-setup
1112 PO4AFLAGS="$(PO4AFLAGS)" LANGS="$(LANGS)" -C $(PERKAMON_DIR) \
1213 | tee untrans.txt
1314 ./untrans-list.pl < untrans.txt > untrans.html
15+ #$(MAKE) format
1416
1517 translate-%: jm-setup
1618 LC_ALL=C $(MAKE) translate-$* \
1719 PO4AFLAGS="$(PO4AFLAGS)" LANGS="$(LANGS)" -C $(PERKAMON_DIR)
20+ #$(MAKE) format-$*
21+
22+release: jm-setup
23+ rm -f $(PERKAMON_DIR)/build/ja
24+ ln -s ../../release $(PERKAMON_DIR)/build/ja
25+ $(MAKE) translate THRESH=$(THRESH_REL) FLAGS=$(FLAGS)
26+ rm -f $(PERKAMON_DIR)/build/ja
27+ ln -s ../../draft $(PERKAMON_DIR)/build/ja
28+
29+format:
30+ set -e; for d in po4a/*; do \
31+ echo "----- $$d -----"; cur=`pwd`; cd $$d/po; \
32+ LC_ALL=C msgmerge --verbose --update ja.po $$(basename $$d); \
33+ cd $$cur; \
34+ done
35+
36+format-%:
37+ set -e; for d in po4a/$*; do \
38+ cd $$d/po; \
39+ msgmerge --verbose --update ja.po $$(basename $$d); \
40+ cd $$cur; \
41+ done
1842
1943 stats: jm-setup
2044 @LC_ALL=C $(MAKE) stats \
Show on old repository browser