[macruby-changes] [582] MacRuby/trunk/Rakefile

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 8 15:24:58 PDT 2008


Revision: 582
          http://trac.macosforge.org/projects/ruby/changeset/582
Author:   lsansonetti at apple.com
Date:     2008-09-08 15:24:58 -0700 (Mon, 08 Sep 2008)
Log Message:
-----------
adding a task to generate and install the rdoc/ri files

Modified Paths:
--------------
    MacRuby/trunk/Rakefile

Modified: MacRuby/trunk/Rakefile
===================================================================
--- MacRuby/trunk/Rakefile	2008-09-08 21:02:00 UTC (rev 581)
+++ MacRuby/trunk/Rakefile	2008-09-08 22:24:58 UTC (rev 582)
@@ -607,6 +607,15 @@
 desc "Same as framework:install"
 task :install => 'framework:install'
 
+desc "Generate and install RDoc/RI"
+task :install_doc => 'miniruby' do
+  doc_op = '.ext/rdoc'
+  unless File.exist?(doc_op)
+    sh "./miniruby -I./lib bin/rdoc --all --ri --op \"#{doc_op}\""
+  end
+  sh "./miniruby instruby.rb #{INSTRUBY_ARGS} --install=rdoc --rdoc-output=\"#{doc_op}\""
+end
+
 desc "Same as macruby:build"
 task :macruby => 'macruby:build'
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080908/662a070f/attachment.html 


More information about the macruby-changes mailing list