summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 36095e1..fb22b5c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -41,15 +41,18 @@ namespace :merge do
[basedir, 'test', 'psych/'] => [rubydir, 'test', 'psych/'],
[basedir, 'lib', 'psych.rb'] => [rubydir, 'lib', 'psych.rb'],
}
+
+ rsync = 'rsync -av --exclude extconf.rb --delete'
+
task :to_ruby do
mergedirs.each do |from, to|
- sh "rsync -av --delete #{File.join(*from)} #{File.join(*to)}"
+ sh "#{rsync} #{File.join(*from)} #{File.join(*to)}"
end
end
task :from_ruby do
mergedirs.each do |from, to|
- sh "rsync -av --delete #{File.join(*to)} #{File.join(*from)}"
+ sh "#{rsync} #{File.join(*to)} #{File.join(*from)}"
end
end
end