[Chinese-commits] [manpages-zh] 66/131: add --disable-zhcn and --disable-zhtw option.
Boyuan Yang
hosiet-guest at moszumanska.debian.org
Tue Dec 13 19:59:41 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 3c1409a375596019c3948ab49a25a5d1bcbc1a24
Author: LI Daobing <lidaobing at gmail.com>
Date: Thu Mar 13 23:59:39 2008 +0800
add --disable-zhcn and --disable-zhtw option.
---
NEWS | 1 +
configure.in | 45 +++++++++++++++++++++++++++++++++++++--------
src/man1/Makefile.am | 3 ++-
src/man2/Makefile.am | 3 ++-
src/man3/Makefile.am | 3 ++-
src/man4/Makefile.am | 3 ++-
src/man5/Makefile.am | 3 ++-
src/man6/Makefile.am | 3 ++-
src/man7/Makefile.am | 3 ++-
src/man8/Makefile.am | 3 ++-
src/mann/Makefile.am | 3 ++-
11 files changed, 56 insertions(+), 17 deletions(-)
diff --git a/NEWS b/NEWS
index e0d2bea..0bc2ef1 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ manpages-zh
Version 1.5.1-rc3 (XXXX-XX-XX)
* generate utf8 encoding manpage by default, you can use
`--disable-utf8' to generate the origin gbk and big5 encoding manpage.
+* add --disable-zhcn and --disable-zhtw option for configure
Version 1.5.1-rc2 (2008-03-01)
* 使用 autotools 替换原来的 Makefile。
diff --git a/configure.in b/configure.in
index eb37acf..9dee82c 100644
--- a/configure.in
+++ b/configure.in
@@ -18,19 +18,46 @@ AC_ARG_ENABLE([utf8],
[utf8=true])
AM_CONDITIONAL([UTF8], [test x$utf8 = xtrue])
-AC_PATH_PROG([ICONV], [iconv])
-if test x$ICONV = x; then
- AC_MSG_ERROR([can not find iconv])
-fi
-
+AC_ARG_ENABLE([zhtw],
+ [AS_HELP_STRING([--disable-zhtw],
+ [do not generate manpages for zh_TW])],
+ [case "${enableval}" in
+ yes) zhtw=true ;;
+ no) zhtw=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-zhtw]) ;;
+ esac],
+ [zhtw=true]
+ )
+if test x$zhtw = xtrue; then
AC_PATH_PROG([AUTOB5], [autob5])
if test x$AUTOB5 = x; then
- AC_MSG_ERROR([can not find autob5, you can install zh-autoconvert])
+ AC_MSG_ERROR([cannot find autob5, you can install zh-autoconvert from http://ftp.debian.org/debian/pool/main/z/zh-autoconvert, or use --disable-zhtw])
+fi
+AC_PATH_PROG([ICONV], [iconv])
+if test x$ICONV = x; then
+ AC_MSG_ERROR([cannot find iconv, you can use --disable-zhtw])
fi
-
AC_PATH_PROG([PERL], [perl])
if test x$PERL = x; then
- AC_MSG_ERROR([please install perl first])
+ AC_MSG_ERROR([cannot find perl, you can use --disable-zhtw])
+fi
+zh_TW=zh_TW
+AC_SUBST(zh_TW)
+fi
+
+AC_ARG_ENABLE([zhcn],
+ [AS_HELP_STRING([--disable-zhcn],
+ [do not generate manpage for zh_CN])],
+ [case "${enableval}" in
+ yes) zhcn=true ;;
+ no) zhcn=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-zhcn]) ;;
+ esac],
+ [zhcn=true]
+ )
+if test x$zhcn = xtrue; then
+ zh_CN=zh_CN
+ AC_SUBST(zh_CN)
fi
AC_CONFIG_FILES([Makefile
@@ -71,4 +98,6 @@ echo
echo "manpages-zh configure summary"
echo "============================="
echo "UTF-8 : $utf8"
+echo "zh_CN : $zhcn"
+echo "zh_TW : $zhtw"
echo
diff --git a/src/man1/Makefile.am b/src/man1/Makefile.am
index 71ea3f8..dce6b81 100644
--- a/src/man1/Makefile.am
+++ b/src/man1/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
diff --git a/src/man2/Makefile.am b/src/man2/Makefile.am
old mode 100644
new mode 100755
index 71ea3f8..dce6b81
--- a/src/man2/Makefile.am
+++ b/src/man2/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
diff --git a/src/man3/Makefile.am b/src/man3/Makefile.am
old mode 100644
new mode 100755
index 71ea3f8..dce6b81
--- a/src/man3/Makefile.am
+++ b/src/man3/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
diff --git a/src/man4/Makefile.am b/src/man4/Makefile.am
old mode 100644
new mode 100755
index 71ea3f8..dce6b81
--- a/src/man4/Makefile.am
+++ b/src/man4/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
diff --git a/src/man5/Makefile.am b/src/man5/Makefile.am
old mode 100644
new mode 100755
index 71ea3f8..dce6b81
--- a/src/man5/Makefile.am
+++ b/src/man5/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
diff --git a/src/man6/Makefile.am b/src/man6/Makefile.am
old mode 100644
new mode 100755
index 71ea3f8..dce6b81
--- a/src/man6/Makefile.am
+++ b/src/man6/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
diff --git a/src/man7/Makefile.am b/src/man7/Makefile.am
old mode 100644
new mode 100755
index 71ea3f8..dce6b81
--- a/src/man7/Makefile.am
+++ b/src/man7/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
diff --git a/src/man8/Makefile.am b/src/man8/Makefile.am
old mode 100644
new mode 100755
index 71ea3f8..dce6b81
--- a/src/man8/Makefile.am
+++ b/src/man8/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
diff --git a/src/mann/Makefile.am b/src/mann/Makefile.am
old mode 100644
new mode 100755
index 71ea3f8..dce6b81
--- a/src/mann/Makefile.am
+++ b/src/mann/Makefile.am
@@ -1,5 +1,6 @@
include $(srcdir)/manpages
-SUBDIRS = zh_CN zh_TW
+SUBDIRS = $(zh_CN) $(zh_TW)
+DIST_SUBDIRS = zh_CN zh_TW
EXTRA_DIST = $(MANPAGES)
--
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