[Chinese-commits] [manpages-zh] 13/31: add orig-package support to utils/append-colophon
Boyuan Yang
hosiet-guest at moszumanska.debian.org
Sat Dec 24 14:25:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
hosiet-guest pushed a commit to branch master
in repository manpages-zh.
commit 5126fae9f3a1364e1df269750ca05f9cc56d132a
Author: Boyuan Yang <073plan at gmail.com>
Date: Sun Dec 18 09:37:12 2016 +0800
add orig-package support to utils/append-colophon
---
ChangeLog | 2 +-
utils/append-colophon | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index de12548..5b3eaf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,7 @@
* Full translation of fs(5), sq(1).
* Append colophon on building by default.
- * Remove sh(1) since it should be dash(1) on Debian.
+ * Remove sh(1) stub since it should be dash(1) on Debian.
2016-12-15 Boyuan Yang <073plan at gmail.com>
diff --git a/utils/append-colophon b/utils/append-colophon
index b7a4875..c14f54e 100755
--- a/utils/append-colophon
+++ b/utils/append-colophon
@@ -15,6 +15,7 @@ def parse_translator_info(line: str, t_info: dict) -> bool:
.\" manpages-zh translator: Foo Bar <email>
.\" manpages-zh date: 2016-11-22
.\" manpages-zh orig-date: 2012-03-22
+ .\" manpages-zh orig-package: bash
"""
if line[:16] == ".\\\" manpages-zh ":
t_info[line[16:].split(": ")[0]] = line[16:].split(": ")[1]
@@ -65,6 +66,9 @@ if __name__ == "__main__":
if "date" in t_info.keys():
print('\\fI翻译日期\\fR:' + t_info["date"], end="")
print('.br')
+ if "orig-package" in t_info.keys():
+ print('\\fI原始软件\\fR:' + t_info["orig-package"], end="")
+ print('.br')
print('.PP')
print("中文 man 手册页计划:\\fB" +
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/manpages-zh.git
More information about the Chinese-commits
mailing list