Sha256: e327b307f29dc9478179e5333138b8c2bd835131b271fdccd95e5ce9ed1268f5
Contents?: true
Size: 435 Bytes
Versions: 21
Compression:
Stored size: 435 Bytes
Contents
require 'fileutils' require "#{File.join(ENV['RUBYLIBDIR'], 'ffi', 'tools', 'types_generator.rb')}" types_conf = File.join(ENV['RUBYLIBDIR'], 'ffi', 'types.conf') file types_conf do |task| options = {} FileUtils.mkdir_p(File.dirname(task.name), { :mode => 0755 }) File.open(task.name, File::CREAT|File::TRUNC|File::RDWR, 0644) do |f| f.puts FFI::TypesGenerator.generate(options) end end task :default => types_conf do end
Version data entries
21 entries across 21 versions & 4 rubygems