Increment deduplications of file extents. Replaces the dedupe_extent of duperemove.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
duperemoverb/Rakefile

29 lines
562 B

# vim: set noet sw=2 ts=2 sts=2:
require 'rake'
require 'rake/extensiontask'
require 'bundler'
extensions = %w[fideduperange].map {|n| [n, Pathname.new( 'ext') + n + "#{n}.so"] }.to_h
extensions.each do |name, path|
Rake::ExtensionTask.new name do |extension|
extension.lib_dir = path.dirname
end
end
task :chmod do
extensions.each do |_,path|
path.chmod 0755
end
end
task :clean do
extensions.each do |_,path|
path.unlink if path.exist?
end
end
task :build => [:clean, :compile, :chmod]
Bundler::GemHelper.install_tasks name: 'duperemoverb'