[前][次][番号順一覧][スレッド一覧]

ruby-changes:55830

From: Nobuyoshi <ko1@a...>
Date: Sat, 25 May 2019 17:24:56 +0900 (JST)
Subject: [ruby-changes:55830] Nobuyoshi Nakada: 65ce14e7b5 (trunk): Added --with-rdoc option

https://git.ruby-lang.org/ruby.git/commit/?id=65ce14e7b5

From 65ce14e7b5f66a92f452136290357eb3df147e5b Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 25 May 2019 17:20:31 +0900
Subject: Added --with-rdoc option

New option to direct formats of RDoc to install.

diff --git a/configure.ac b/configure.ac
index d7b575b..34026ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3321,18 +3321,30 @@ CAPITARGET="" https://github.com/ruby/ruby/blob/trunk/configure.ac#L3321
 AC_ARG_ENABLE(install-doc,
        AS_HELP_STRING([--disable-install-doc], [do not install either rdoc indexes or C API documents during install]),
        [install_doc=$enableval], [install_doc=yes])
+AC_ARG_WITH(rdoc,
+      AS_HELP_STRING([--with-rdoc=ri,html], [comma/space separated list of RDoc formats to install]),
+      [install_rdoc=`echo ,$withval, | sed 'y/,/ /;s/ ri / rdoc /;s/^ *//;s/ *$//'`], [
 AC_ARG_ENABLE(install-rdoc,
       AS_HELP_STRING([--disable-install-rdoc], [do not install rdoc indexes during install]),
       [install_rdoc=$enableval], [install_rdoc=yes])
+])
 AC_ARG_ENABLE(install-capi,
       AS_HELP_STRING([--disable-install-capi], [do not install C API documents during install]),
       [install_capi=$enableval], [install_capi=no])
 
 AS_IF([test "$install_doc" != no], [
-    AS_IF([test "$install_rdoc" != no], [
+    AS_CASE(["$install_rdoc"],
+    [yes], [
 	RDOCTARGET="rdoc"
-    ], [
+    ],
+    [all], [
+	RDOCTARGET="rdoc html"
+    ],
+    [no|''], [
 	RDOCTARGET="nodoc"
+    ],
+    [
+	RDOCTARGET="$install_rdoc"
     ])
     AS_IF([test "$install_capi" != no -a -n "$DOXYGEN"], [
 	CAPITARGET="capi"
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]