summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-26 22:56:01 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-03-26 22:56:01 -0700
commitc6b71d9412a18dc9910ff541b8afadbb62112fec (patch)
tree1451ffe5107559ce5f23d6caf41810e7393280ac /Rakefile
parent1c23ee9785721f368f648a23607bd8a69822b287 (diff)
downloadpsych-c6b71d9412a18dc9910ff541b8afadbb62112fec.tar.gz
* Rakefile: adding a task to sync psych with ruby-trunk
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index edcffca..35888b5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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