[Chinese-commits] [manpages-zh] 10/31: initially add append_colophon option
Boyuan Yang
hosiet-guest at moszumanska.debian.org
Sat Dec 24 14:25:55 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 fd86f97ec9fc9b6a452c0e5580fb6da61f22c36a
Author: Boyuan Yang <073plan at gmail.com>
Date: Sat Dec 17 23:49:18 2016 +0800
initially add append_colophon option
---
ChangeLog | 5 +++++
README.md | 10 ++++++++++
configure.ac | 32 +++++++++++++++++++++++++++-----
src/man1/zh_CN/Makefile.am | 10 ++++++++--
src/man1/zh_TW/Makefile.am | 10 ++++++++--
src/man2/zh_CN/Makefile.am | 10 ++++++++--
src/man2/zh_TW/Makefile.am | 10 ++++++++--
src/man3/zh_CN/Makefile.am | 10 ++++++++--
src/man3/zh_TW/Makefile.am | 10 ++++++++--
src/man4/zh_CN/Makefile.am | 10 ++++++++--
src/man4/zh_TW/Makefile.am | 10 ++++++++--
src/man5/zh_CN/Makefile.am | 10 ++++++++--
src/man5/zh_TW/Makefile.am | 10 ++++++++--
src/man6/zh_CN/Makefile.am | 10 ++++++++--
src/man6/zh_TW/Makefile.am | 10 ++++++++--
src/man7/zh_CN/Makefile.am | 10 ++++++++--
src/man7/zh_TW/Makefile.am | 10 ++++++++--
src/man8/zh_CN/Makefile.am | 10 ++++++++--
src/man8/zh_TW/Makefile.am | 10 ++++++++--
src/mann/zh_CN/Makefile.am | 15 ++++++++++-----
src/mann/zh_TW/Makefile.am | 14 ++++++++++----
21 files changed, 190 insertions(+), 46 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 58dbb2d..8b56e9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-18 Boyuan Yang <073plan at gmail.com>
+
+ * Full translation of fs(5).
+ * Append colophon on building by default.
+
2016-12-15 Boyuan Yang <073plan at gmail.com>
* Rewrite README into README.md.
diff --git a/README.md b/README.md
index 98a8fb0..5c6cd97 100644
--- a/README.md
+++ b/README.md
@@ -25,6 +25,16 @@
## 安装与使用
+### 构建
+
+构建依赖包括:
+
+* autotools (autoconf, automake)
+* perl
+* python3
+* zh-autoconvert
+* iconv
+
### 从 Linux 发行版安装
Debian:
diff --git a/configure.ac b/configure.ac
index 8318398..55e0b1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,14 +2,14 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.61])
-AC_INIT([manpages-zh],[1.5.4.1],[https://github.com/man-pages-zh/manpages-zh/issues])
+AC_INIT([manpages-zh],[1.5.4.90],[https://github.com/man-pages-zh/manpages-zh/issues])
AC_CONFIG_SRCDIR([src/man1/basename.1])
AM_INIT_AUTOMAKE([subdir-objects])
AM_MAINTAINER_MODE
AC_ARG_ENABLE([utf8],
[AS_HELP_STRING([--disable-utf8],
- [don't generate manpages in utf8 encoding,
+ [don not generate manpages in utf8 encoding,
use gbk and big5 encoding])],
[case "${enableval}" in
yes) utf8=true ;;
@@ -19,6 +19,27 @@ AC_ARG_ENABLE([utf8],
[utf8=true])
AM_CONDITIONAL([UTF8], [test x$utf8 = xtrue])
+AC_ARG_ENABLE([append_colophon],
+ [AS_HELP_STRING([--disable-append-colophon],
+ [do not append translation information
+ to output man pages])],
+ [case "${enableval}" in
+ yes) append_colophon=true ;;
+ no) append_colophon=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --disable-append-colophon]) ;;
+ esac],
+ [append_colophon=true])
+AM_CONDITIONAL([APPEND_COLOPHON], [test "x${append_colophon}" = "xtrue"])
+
+# append-colophon require python3 to work properly
+AS_IF([test "x${append_colophon}" = "xtrue"],
+ [AC_CHECK_PROG([HAVE_PYTHON3], [python3], [yes], [no])
+ AS_IF([test "x${HAVE_PYTHON3}" = "xno"],
+ [AC_MSG_ERROR([you need to install python3 to build the package.])],
+ [])
+ ],
+ [])
+
AC_ARG_ENABLE([zhtw],
[AS_HELP_STRING([--disable-zhtw],
[do not generate manpages for zh_TW])],
@@ -98,7 +119,8 @@ AC_OUTPUT
echo
echo "manpages-zh configure summary"
echo "============================="
-echo "UTF-8 : $utf8"
-echo "zh_CN : $zhcn"
-echo "zh_TW : $zhtw"
+echo "UTF-8 : $utf8"
+echo "zh_CN : $zhcn"
+echo "zh_TW : $zhtw"
+echo "COLOPHON: $append_colophon"
echo
diff --git a/src/man1/zh_CN/Makefile.am b/src/man1/zh_CN/Makefile.am
index e3836af..7e34601 100644
--- a/src/man1/zh_CN/Makefile.am
+++ b/src/man1/zh_CN/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.1: $(srcdir)/../%.1
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%.1: $(srcdir)/../%.1
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif !UTF8
clean-local:
diff --git a/src/man1/zh_TW/Makefile.am b/src/man1/zh_TW/Makefile.am
index b9831d5..81af86d 100644
--- a/src/man1/zh_TW/Makefile.am
+++ b/src/man1/zh_TW/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.1: $(srcdir)/../%.1
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%.1: $(srcdir)/../%.1
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
diff --git a/src/man2/zh_CN/Makefile.am b/src/man2/zh_CN/Makefile.am
index fd99f2c..dadc922 100644
--- a/src/man2/zh_CN/Makefile.am
+++ b/src/man2/zh_CN/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.2: $(srcdir)/../%.2
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%.2: $(srcdir)/../%.2
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif
clean-local:
diff --git a/src/man2/zh_TW/Makefile.am b/src/man2/zh_TW/Makefile.am
index f9544be..72a3031 100644
--- a/src/man2/zh_TW/Makefile.am
+++ b/src/man2/zh_TW/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.2: $(srcdir)/../%.2
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%.2: $(srcdir)/../%.2
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
diff --git a/src/man3/zh_CN/Makefile.am b/src/man3/zh_CN/Makefile.am
index 3413878..ca06087 100644
--- a/src/man3/zh_CN/Makefile.am
+++ b/src/man3/zh_CN/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.3: $(srcdir)/../%.3
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%.3: $(srcdir)/../%.3
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif
clean-local:
diff --git a/src/man3/zh_TW/Makefile.am b/src/man3/zh_TW/Makefile.am
index a9e1d8d..042066f 100644
--- a/src/man3/zh_TW/Makefile.am
+++ b/src/man3/zh_TW/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.3: $(srcdir)/../%.3
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%.3: $(srcdir)/../%.3
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
diff --git a/src/man4/zh_CN/Makefile.am b/src/man4/zh_CN/Makefile.am
index 1e9c3d8..9615d83 100644
--- a/src/man4/zh_CN/Makefile.am
+++ b/src/man4/zh_CN/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.4: $(srcdir)/../%.4
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%.4: $(srcdir)/../%.4
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif
clean-local:
diff --git a/src/man4/zh_TW/Makefile.am b/src/man4/zh_TW/Makefile.am
index 6cadb17..9831eb7 100644
--- a/src/man4/zh_TW/Makefile.am
+++ b/src/man4/zh_TW/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.4: $(srcdir)/../%.4
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%.4: $(srcdir)/../%.4
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
diff --git a/src/man5/zh_CN/Makefile.am b/src/man5/zh_CN/Makefile.am
index 65d4538..6f491f6 100644
--- a/src/man5/zh_CN/Makefile.am
+++ b/src/man5/zh_CN/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.5: $(srcdir)/../%.5
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%.5: $(srcdir)/../%.5
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif
clean-local:
diff --git a/src/man5/zh_TW/Makefile.am b/src/man5/zh_TW/Makefile.am
index c00b55c..93b9dc6 100644
--- a/src/man5/zh_TW/Makefile.am
+++ b/src/man5/zh_TW/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.5: $(srcdir)/../%.5
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%.5: $(srcdir)/../%.5
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
diff --git a/src/man6/zh_CN/Makefile.am b/src/man6/zh_CN/Makefile.am
index d2d031d..3a44f52 100644
--- a/src/man6/zh_CN/Makefile.am
+++ b/src/man6/zh_CN/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.6: $(srcdir)/../%.6
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%.6: $(srcdir)/../%.6
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif
clean-local:
diff --git a/src/man6/zh_TW/Makefile.am b/src/man6/zh_TW/Makefile.am
index d7e1eeb..2039401 100644
--- a/src/man6/zh_TW/Makefile.am
+++ b/src/man6/zh_TW/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.6: $(srcdir)/../%.6
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%.6: $(srcdir)/../%.6
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
diff --git a/src/man7/zh_CN/Makefile.am b/src/man7/zh_CN/Makefile.am
index 99f5ddf..ddd5e25 100644
--- a/src/man7/zh_CN/Makefile.am
+++ b/src/man7/zh_CN/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.7: $(srcdir)/../%.7
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%.7: $(srcdir)/../%.7
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif
clean-local:
diff --git a/src/man7/zh_TW/Makefile.am b/src/man7/zh_TW/Makefile.am
index 97ec87e..c8c7fd2 100644
--- a/src/man7/zh_TW/Makefile.am
+++ b/src/man7/zh_TW/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.7: $(srcdir)/../%.7
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%.7: $(srcdir)/../%.7
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
diff --git a/src/man8/zh_CN/Makefile.am b/src/man8/zh_CN/Makefile.am
index 8746cb1..5c35cea 100644
--- a/src/man8/zh_CN/Makefile.am
+++ b/src/man8/zh_CN/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.8: $(srcdir)/../%.8
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%.8: $(srcdir)/../%.8
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif
clean-local:
diff --git a/src/man8/zh_TW/Makefile.am b/src/man8/zh_TW/Makefile.am
index 4714d97..603c288 100644
--- a/src/man8/zh_TW/Makefile.am
+++ b/src/man8/zh_TW/Makefile.am
@@ -2,14 +2,20 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%.8: $(srcdir)/../%.8
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%.8: $(srcdir)/../%.8
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
diff --git a/src/mann/zh_CN/Makefile.am b/src/mann/zh_CN/Makefile.am
index c18a7fd..87eb43e 100644
--- a/src/mann/zh_CN/Makefile.am
+++ b/src/mann/zh_CN/Makefile.am
@@ -2,19 +2,24 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_CN
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%tcl: $(srcdir)/../%tcl
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
%tk: $(srcdir)/../%tk
- cp $< $@
+ $(APPEND_COLOPHON) < $< > $@
else !UTF8
%tcl: $(srcdir)/../%tcl
- iconv -f utf8 -t gbk -o $@ $<
-
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
%tk: $(srcdir)/../%tk
- iconv -f utf8 -t gbk -o $@ $<
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk -o $@
endif
clean-local:
diff --git a/src/mann/zh_TW/Makefile.am b/src/mann/zh_TW/Makefile.am
index 8a37840..e74c958 100644
--- a/src/mann/zh_TW/Makefile.am
+++ b/src/mann/zh_TW/Makefile.am
@@ -2,18 +2,24 @@ include $(srcdir)/../manpages
mandir = @mandir@/zh_TW
+if APPEND_COLOPHON
+APPEND_COLOPHON = ${top_srcdir}/utils/append-colophon
+else !APPEND_COLOPHON
+APPEND_COLOPHON = tee
+endif
+
man_MANS = $(MANPAGES)
if UTF8
%tcl: $(srcdir)/../%tcl
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
%tk: $(srcdir)/../%tk
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl | iconv -f big5 -t utf8 > $@
else
%tcl: $(srcdir)/../%tcl
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl > $@
%tk: $(srcdir)/../%tk
- iconv -f utf8 -t gbk $< | autob5 | $(top_srcdir)/utils/totw.pl > $@
+ $(APPEND_COLOPHON) < $< | iconv -f utf8 -t gbk | autob5 | $(top_srcdir)/utils/totw.pl > $@
endif
clean-local:
--
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