22 lines
446 B
Ruby
22 lines
446 B
Ruby
# vim: set noet sw=2 ts=2 sts=2:
|
|
|
|
require 'rake'
|
|
require 'rake/extensiontask'
|
|
require 'bundler'
|
|
|
|
Rake::ExtensionTask.new( "deduperemoverb") do |extension|
|
|
extension.lib_dir = "ext"
|
|
end
|
|
|
|
task :chmod do
|
|
File.chmod 0775, 'ext/deduperemoverb.so'
|
|
end
|
|
|
|
task :clean do
|
|
File.unlink 'ext/deduperemoverb.so' if File.exists? 'ext/deduperemoverb.so'
|
|
end
|
|
|
|
task :build => [:clean, :compile, :chmod]
|
|
|
|
Bundler::GemHelper.install_tasks name: 'deduperemoverb'
|