[Chinese-commits] [manpages-zh] 17/24: minor modification in configure.ac

Boyuan Yang hosiet-guest at moszumanska.debian.org
Sat Mar 4 11:28:21 UTC 2017


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 e917da55e952521e58f6d73350fcb63744b25b1c
Author: Boyuan Yang <073plan at gmail.com>
Date:   Thu Feb 16 16:30:33 2017 +0800

    minor modification in configure.ac
---
 ChangeLog    | 1 +
 configure.ac | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 3710fdc..bdb8c65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 	* Remove charset(1), disappeared since 2013.
 	* Remove reference to zh.tmac.
 	* Let append-colophon script recognize mdoc format.
+	* Raise error on disabling both zh_CN and zh_TW format in configure.ac.
 
 2017-02-15  Boyuan Yang <073plan at gmail.com>
 
diff --git a/configure.ac b/configure.ac
index e4d63ef..ab1cf6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,7 +49,7 @@ AS_IF([test "x${zhtw}" = "xtrue"],
 
 AC_ARG_ENABLE([zhcn],
               [AS_HELP_STRING([--disable-zhcn],
-                              [do not generate manpage for zh_CN])],
+                              [do not generate manpages for zh_CN])],
               [case "${enableval}" in
                 yes) zhcn=true ;;
                 no) zhcn=false ;;
@@ -61,6 +61,11 @@ AS_IF([test "x${zhcn}" = "xtrue"],
       [zh_CN=zh_CN; AC_SUBST([zh_CN])],
       [])
 
+AS_IF([test "x${zhcn}" = "xfalse" && test "x${zhtw}" = "xfalse" ],
+      [AC_MSG_ERROR([You cannot disable zh_CN and zh_TW pages together. Exiting...])],
+      [])
+
+
 AC_CONFIG_FILES([Makefile
                  DOCS/Makefile
                  src/Makefile

-- 
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