Revision: 582 http://trac.macosforge.org/projects/ruby/changeset/582 Author: lsansonetti@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'
participants (1)
-
source_changes@macosforge.org