Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (44 sloc) 1.48 KB
# -*- ruby -*-
require 'rubygems'
require 'hoe'
gem 'rake-compiler', '>= 0.4.1'
require "rake/extensiontask"
Hoe.plugin :debugging, :doofus, :git
Hoe.spec 'psych' do
developer 'Aaron Patterson', 'aaronp@rubyforge.org'
developer 'John Barnette', 'jbarnette@rubyforge.org'
self.extra_rdoc_files = Dir['*.rdoc']
self.history_file = 'CHANGELOG.rdoc'
self.readme_file = 'README.rdoc'
self.testlib = :minitest
extra_dev_deps << ['rake-compiler', '>= 0.4.1']
self.spec_extras = { :extensions => ["ext/psych/extconf.rb"] }
Rake::ExtensionTask.new "psych", spec do |ext|
ext.lib_dir = File.join(*['lib', 'psych', ENV['FAT_DIR']].compact)
end
end
Hoe.add_include_dirs('.')
task :test => :compile
desc "merge psych in to ruby trunk"
namespace :merge do
basedir = File.expand_path File.dirname __FILE__
rubydir = File.join ENV['HOME'], 'git', 'ruby'
mergedirs = {
# 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'],
}
task :to_ruby do
mergedirs.each do |from, to|
sh "rsync -av --delete #{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)}"
end
end
end
# vim: syntax=ruby
Jump to Line
Something went wrong with that request. Please try again.