On Tue, 16 Mar 2004, Dave Thomas wrote:

>
> On Mar 16, 2004, at 5:48, Hugh Sasse Staff Elec Eng wrote:
> > I've tried this again with a two new directories, one for rdoc and
> > one for cvs ruby, and I'm still getting the same failure.  Rdoc's
> > install doesn't seem to install anything conditionally, so
> > everything should be renewed, shouldn't it?
> > RDoc Vgs: 2003/08/22 12:33:37 (1.72)
> > What other diags can I supply?
>
> You're using an ancient RDoc: it now comes with Ruby in Ruby's CVS
> tree. If you download and install Ruby, you'll get the latest RDoc.

OK, but I got the latest rdoc from CVS, and installed that before
doing the rdoc. I have not actually installed the cvs ruby.
ruby --version gives
ruby 1.8.1 (2003-12-25) [sparc-solaris2.9]
So why has the new rdoc not installed, and failed silently?
:r! which rdoc ; ls -l `which rdoc`

/usr/local/bin/rdoc
-rwxr-xr-x   1 root     other        156 Jan 30 17:27 /usr/local/bin/rdoc

retry:

brains# cd /scratch/hgs/rdoc/rdoc
brains# ls
CVS           Makefile      contrib       markup        web
ChangeLog     NEW_FEATURES  dot           rdoc
EXAMPLE.rb    README        etc           rdoc.rb
MANIFEST      ToDo          install.rb    testcases
brains# ls -ltr | tail
-rw-r--r--   1 hgs      staff       8015 Oct 19 15:35 NEW_FEATURES
-rw-r--r--   1 hgs      staff      31508 Nov 16 15:48 ChangeLog
drwxr-xr-x   3 hgs      staff        512 Mar 16 11:19 etc
drwxr-xr-x   3 hgs      staff        512 Mar 16 11:19 dot
drwxr-xr-x   4 hgs      staff        512 Mar 16 11:19 contrib
drwxr-xr-x   3 hgs      staff        512 Mar 16 11:19 testcases
drwxr-xr-x   5 hgs      staff        512 Mar 16 11:19 rdoc
drwxr-xr-x   6 hgs      staff        512 Mar 16 11:19 markup
drwxr-xr-x   5 hgs      staff        512 Mar 16 11:19 web
drwxr-xr-x   2 hgs      staff        512 Mar 16 11:23 CVS
brains# ruby install.rb
brains# ls -l /usr/local/bin/rdoc
-rwxr-xr-x   1 root     other        156 Jan 30 17:27 /usr/local/bin/rdoc
brains# cat !$
cat /usr/local/bin/rdoc
#!/usr/local/bin/ruby
require 'rdoc/rdoc'

begin
  r = RDoc::RDoc.new
  r.document(ARGV)
rescue RDoc::RDocError => e
  $stderr.puts e.message
  exit(1)
end
brains#

So it should be picking up those files even if the /usr/local/bin/rdoc itself
is old.
>
> Cheers
>
> Dave
>

        Hugh