[#2139] Best way to install ri documentation — Dave Thomas <dave@...>

Folks:

69 messages 2004/01/04
[#2140] Re: Best way to install ri documentation — Gavin Sinclair <gsinclair@...> 2004/01/04

On Monday, January 5, 2004, 2:29:57 AM, Dave wrote:

[#2141] Re: Best way to install ri documentation — matz@... (Yukihiro Matsumoto) 2004/01/04

Hi,

[#2145] Re: Best way to install ri documentation — Richard Kilmer <rich@...> 2004/01/05

Perhaps make it available for mirrors and save ruby-lang's bandwidth?

[#2147] Re: Best way to install ri documentation — Dave Thomas <dave@...> 2004/01/05

[#2148] Re: Best way to install ri documentation -- please check this — Dave Thomas <dave@...> 2004/01/05

So, I'm thinking about doing the following? Is this OK with everyone?

[#2149] Re: Best way to install ri documentation -- please check this — "J.Herre" <jlst@...> 2004/01/05

[#2152] Re: Best way to install ri documentation -- please check this — Dave Thomas <dave@...> 2004/01/05

[#2153] Re: Best way to install ri documentation -- please check this — nobu.nokada@... 2004/01/05

Hi,

[#2154] Re: Best way to install ri documentation -- please check this — Dave Thomas <dave@...> 2004/01/05

[#2219] Re: Best way to install ri documentation -- please check this — "James F. Hranicky" <jfh@...> 2004/01/12

On Tue, 6 Jan 2004 00:47:41 +0900

[#2194] File.readable_world? and File.writable_world? — Ian Macdonald <ian@...>

Hello,

27 messages 2004/01/09
[#2195] Re: [PATCH] File.readable_world? and File.writable_world? — Eivind Eklund <eivind@...> 2004/01/09

On Fri, Jan 09, 2004 at 06:02:07PM +0900, Ian Macdonald wrote:

[#2199] Re: [PATCH] File.readable_world? and File.writable_world? — Ian Macdonald <ian@...> 2004/01/09

On Fri 09 Jan 2004 at 23:10:02 +0900, Eivind Eklund wrote:

[#2200] Re: [PATCH] File.readable_world? and File.writable_world? — matz@... (Yukihiro Matsumoto) 2004/01/10

Hi,

[#2203] Re: [PATCH] File.readable_world? and File.writable_world? — Ian Macdonald <ian@...> 2004/01/11

On Sun 11 Jan 2004 at 00:47:33 +0900, Yukihiro Matsumoto wrote:

[#2206] Re: [PATCH] File.readable_world? and File.writable_world? — matz@... (Yukihiro Matsumoto) 2004/01/11

Hi,

[#2208] Re: [PATCH] File.readable_world? and File.writable_world? — Ian Macdonald <ian@...> 2004/01/11

On Sun 11 Jan 2004 at 21:40:22 +0900, Yukihiro Matsumoto wrote:

[#2209] Re: [PATCH] File.readable_world? and File.writable_world? — matz@... (Yukihiro Matsumoto) 2004/01/12

Hi,

[#2216] ruby aborts in data-handling applications — xsdg <xsdg@...>

I reported a similar bug about 2 or 3 months ago. The problem seemed to go

12 messages 2004/01/12

Re: Best way to install ri documentation -- please check this

From: "J.Herre" <jlst@...>
Date: 2004-01-06 19:20:58 UTC
List: ruby-core #2175
On Jan 5, 2004, at 7:25 PM, Dave Thomas wrote:

> That'd be cool, but I'm clueless about autoconf. If folks feel this is 
> a good idea, someone else'll have to make the patch...
>

Here's a quick attempt at providing autoconf support for building rdoc 
documentation...

Here rdoc is disabled by default, you need to --enable-install-doc to 
get it turned on.  Maybe once the kinks are out of the system, folks 
can discuss making it enabled by default.

I wasn't sure whether to use 'doc' or 'rdoc'.

Does this seem like it's on the right track?

-J



Index: Makefile.in
===================================================================
RCS file: /src/ruby/Makefile.in,v
retrieving revision 1.55.2.1
diff -u -r1.55.2.1 Makefile.in
--- Makefile.in	5 Jan 2004 21:46:49 -0000	1.55.2.1
+++ Makefile.in	6 Jan 2004 19:09:00 -0000
@@ -139,7 +139,7 @@
  		@@NM@ -Pgp $(LIBRUBY_A) | awk 'BEGIN{print "#!"}; 
$$2~/^[BD]$$/{print $$1}' | sort -u -o $@
  # $(MINIRUBY) $< $@

-install:	install-nodoc rdoc
+install:	install-nodoc @RDOCTARGET@

  install-nodoc:	rbconfig.rb
  		$(MINIRUBY) $(srcdir)/instruby.rb $(SCRIPT_ARGS) 
--mantype="$(MANTYPE)"
@@ -149,9 +149,9 @@
  		$(MINIRUBY) $(srcdir)/instruby.rb -n $(SCRIPT_ARGS) 
--mantype="$(MANTYPE)"
  		$(MINIRUBY) $(srcdir)/ext/extmk.rb -n $(SCRIPT_ARGS) install

-rdoc:
+install-doc:
  		@echo Generating RDoc documentation
-		$(MINIRUBY) -I lib bin/rdoc --all --ri-system
+		$(MINIRUBY) -I lib bin/rdoc --all --ri-system $(srcdir)

  clean-ext:
  		@-$(MINIRUBY) $(srcdir)/ext/extmk.rb $(SCRIPT_ARGS) clean 2> 
/dev/null || true
@@ -204,7 +204,7 @@

  .PRECIOUS:	@MAKEFILES@

-.PHONY:		test install install-nodoc rdoc
+.PHONY:		test

  PHONY:

Index: configure.in
===================================================================
RCS file: /src/ruby/configure.in,v
retrieving revision 1.212.2.4
diff -u -r1.212.2.4 configure.in
--- configure.in	6 Jan 2004 14:00:44 -0000	1.212.2.4
+++ configure.in	6 Jan 2004 19:09:01 -0000
@@ -1223,6 +1223,16 @@
  XLDFLAGS="$XLDFLAGS -L."
  AC_SUBST(ARCHFILE)

+dnl build rdoc index if requested
+RDOCTARGET="PHONY"
+AC_ARG_ENABLE(install-doc,
+       [  --enable-install-doc    build and install rdoc indexes 
during install ],
+       [install_doc=$enableval], [install_doc=no])
+if test "$install_doc" != no; then
+   RDOCTARGET="install-doc"
+fi
+AC_SUBST(RDOCTARGET)
+
  case "$target_os" in
      netbsd*)
      	CFLAGS="$CFLAGS -pipe"


In This Thread