From 5d69a5e8cf28daddeba70ea53ef2e493c6d8290b Mon Sep 17 00:00:00 2001 From: Jim Weirich Date: Wed, 17 Sep 2008 22:14:19 -0400 Subject: [PATCH] updated ruby19 rake tasks --- lib/rake.rb | 1 - rakelib/ruby19.rake | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/rake.rb b/lib/rake.rb index 9ff0bb63d..28915a24e 100755 --- a/lib/rake.rb +++ b/lib/rake.rb @@ -32,7 +32,6 @@ RAKEVERSION = '0.8.2.1' require 'rbconfig' -require 'getoptlong' require 'fileutils' require 'singleton' require 'monitor' diff --git a/rakelib/ruby19.rake b/rakelib/ruby19.rake index 4bbe344cb..4fc6fc3a5 100644 --- a/rakelib/ruby19.rake +++ b/rakelib/ruby19.rake @@ -5,7 +5,7 @@ module Ruby19 RELEASE_FILES = FileList['bin/rake', 'lib/rake.rb', 'lib/rake/**/*'] RELEASE_FILES.exclude('lib/rake/lib', 'project.rake', 'lib/rake/plugins', 'lib/rake/contrib') - SVN = "../thirdparty/ruby" + SVN = "#{ENV['HOME']}/working/svn/software/thirdparty/ruby" def run_tests(files, opts='') sh "#{PROG} -Ilib lib/rake/rake_test_loader.rb #{opts} #{files}" @@ -15,6 +15,12 @@ module Ruby19 end namespace "ruby19" do + desc "Generate a diff file between the primary repo and Ruby 1.9" + task :diff => [:check_svn] do + sh %{diff -u #{Ruby19::SVN}/lib/rake.rb lib/rake.rb} + sh %{diff -u -x .svn -x contrib -x lib #{Ruby19::SVN}/lib/rake lib/rake} + end + desc "Ruby Release Files" task :release_files do puts Ruby19::RELEASE_FILES