Sha256: cd51323edf399cd2b2122d965d3360df18c675001add4ca9ed3608c8d38105c9
Contents?: true
Size: 472 Bytes
Versions: 90
Compression:
Stored size: 472 Bytes
Contents
require 'fileutils' require "#{File.join(File.dirname(__FILE__), '..', 'lib', 'ffi', 'tools', 'types_generator.rb')}" types_conf = File.join(File.dirname(__FILE__), '..', 'lib', '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
90 entries across 88 versions & 8 rubygems