From 4f1dcd2a250a32e501976343499afb5ca68fdf90 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Thu, 16 Apr 2020 17:13:51 +0200 Subject: [PATCH] Generate types.conf independent from version changes It was irritating, that the types.conf wasn't generated unless the version changed. --- Rakefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 8b6448f2a..f4ea40e63 100644 --- a/Rakefile +++ b/Rakefile @@ -145,7 +145,7 @@ require_relative "lib/ffi/platform" types_conf = File.expand_path(File.join(FFI::Platform::CONF_DIR, 'types.conf')) logfile = File.join(File.dirname(__FILE__), 'types_log') -file types_conf => File.join("lib", "ffi", "version.rb") do |task| +task types_conf do |task| require 'fileutils' require_relative "lib/ffi/tools/types_generator" options = {} @@ -159,8 +159,7 @@ file types_conf => File.join("lib", "ffi", "version.rb") do |task| end desc "Create or update type information for platform #{FFI::Platform::NAME}" -task :types_conf => types_conf do -end +task :types_conf => types_conf Gem::Tasks.new do |t| t.scm.tag.format = '%s'