diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-26 22:56:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-26 22:56:01 -0700 |
commit | c6b71d9412a18dc9910ff541b8afadbb62112fec (patch) | |
tree | 1451ffe5107559ce5f23d6caf41810e7393280ac /Rakefile | |
parent | 1c23ee9785721f368f648a23607bd8a69822b287 (diff) | |
download | psych-c6b71d9412a18dc9910ff541b8afadbb62112fec.tar.gz |
* Rakefile: adding a task to sync psych with ruby-trunk
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -7,7 +7,6 @@ gem 'rake-compiler', '>= 0.4.1' require "rake/extensiontask" Hoe.plugin :debugging, :doofus, :git -Hoe::RUBY_FLAGS << " -I. " Hoe.spec 'psych' do developer 'Aaron Patterson', 'aaronp@rubyforge.org' @@ -31,4 +30,19 @@ Hoe.add_include_dirs('.') task :test => :compile +desc "merge psych in to ruby trunk" +task :merge do + basedir = File.expand_path File.dirname __FILE__ + rubydir = File.join ENV['HOME'], 'git', 'ruby' + { + # From # To + [basedir, 'ext', 'psych/'] => [rubydir, 'ext', 'psych/'], + [basedir, 'lib', 'psych/'] => [rubydir, 'lib', 'psych/'], + [basedir, 'test', 'psych/'] => [rubydir, 'test', 'psych/'], + [basedir, 'lib', 'psych.rb'] => [rubydir, 'lib', 'psych.rb'], + }.each do |from, to| + sh "rsync -av --delete #{File.join(*from)} #{File.join(*to)}" + end +end + # vim: syntax=ruby |