diff options
Diffstat (limited to 'vendor/gems/rdoc-2.4.3/Rakefile')
-rw-r--r-- | vendor/gems/rdoc-2.4.3/Rakefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/vendor/gems/rdoc-2.4.3/Rakefile b/vendor/gems/rdoc-2.4.3/Rakefile new file mode 100644 index 000000000..efe2e5635 --- /dev/null +++ b/vendor/gems/rdoc-2.4.3/Rakefile @@ -0,0 +1,71 @@ +require 'hoe' + +$rdoc_rakefile = true + +$:.unshift 'lib' +require 'rdoc' + +Hoe.new "rdoc", RDoc::VERSION do |rdoc| + rdoc.developer 'Eric Hodel', 'drbrain@segment7.net' + rdoc.developer 'Dave Thomas', '' + rdoc.developer 'Phil Hagelberg', 'technomancy@gmail.com' + rdoc.developer 'Tony Strauss', 'tony.strauss@designingpatterns.com' + rdoc.remote_rdoc_dir = '' + rdoc.testlib = :minitest + + rdoc.extra_dev_deps << ['minitest', '~> 1.3'] + rdoc.spec_extras['required_rubygems_version'] = '>= 1.3' + rdoc.spec_extras['homepage'] = 'http://rdoc.rubyforge.org' +end + +# These tasks expect to have the following directory structure: +# +# git/git.rubini.us/code # Rubinius git HEAD checkout +# svn/ruby/trunk # ruby subversion HEAD checkout +# svn/rdoc/trunk # RDoc subversion HEAD checkout +# +# If you don't have this directory structure, set RUBY_PATH and/or +# RUBINIUS_PATH. + +diff_options = "-urpN --exclude '*svn*' --exclude '*swp' --exclude '*rbc'" +rsync_options = "-avP --exclude '*svn*' --exclude '*swp' --exclude '*rbc' --exclude '*.rej' --exclude '*.orig'" + +rubinius_dir = ENV['RUBINIUS_PATH'] || '../../../git/git.rubini.us/code' +ruby_dir = ENV['RUBY_PATH'] || '../../ruby/trunk' + +desc "Updates Ruby HEAD with the currently checked-out copy of RDoc." +task :update_ruby do + sh "rsync #{rsync_options} bin/rdoc #{ruby_dir}/bin/rdoc" + sh "rsync #{rsync_options} bin/ri #{ruby_dir}/bin/ri" + sh "rsync #{rsync_options} lib/ #{ruby_dir}/lib" + sh "rsync #{rsync_options} test/ #{ruby_dir}/test/rdoc" +end + +desc "Diffs Ruby HEAD with the currently checked-out copy of RDoc." +task :diff_ruby do + options = "-urpN --exclude '*svn*' --exclude '*swp' --exclude '*rbc'" + + sh "diff #{diff_options} bin/rdoc #{ruby_dir}/bin/rdoc; true" + sh "diff #{diff_options} bin/ri #{ruby_dir}/bin/ri; true" + sh "diff #{diff_options} lib/rdoc.rb #{ruby_dir}/lib/rdoc.rb; true" + sh "diff #{diff_options} lib/rdoc #{ruby_dir}/lib/rdoc; true" + sh "diff #{diff_options} test #{ruby_dir}/test/rdoc; true" +end + +desc "Updates Rubinius HEAD with the currently checked-out copy of RDoc." +task :update_rubinius do + sh "rsync #{rsync_options} bin/rdoc #{rubinius_dir}/lib/bin/rdoc.rb" + sh "rsync #{rsync_options} bin/ri #{rubinius_dir}/lib/bin/ri.rb" + sh "rsync #{rsync_options} lib/ #{rubinius_dir}/lib" + sh "rsync #{rsync_options} test/ #{rubinius_dir}/test/rdoc" +end + +desc "Diffs Rubinius HEAD with the currently checked-out copy of RDoc." +task :diff_rubinius do + sh "diff #{diff_options} bin/rdoc #{rubinius_dir}/lib/bin/rdoc.rb; true" + sh "diff #{diff_options} bin/ri #{rubinius_dir}/lib/bin/ri.rb; true" + sh "diff #{diff_options} lib/rdoc.rb #{rubinius_dir}/lib/rdoc.rb; true" + sh "diff #{diff_options} lib/rdoc #{rubinius_dir}/lib/rdoc; true" + sh "diff #{diff_options} test #{rubinius_dir}/test/rdoc; true" +end + |