From 2bd061f25e93683d7b2aa36f1227cef3df8dd37e Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 9 Jun 2016 06:32:18 +0000 Subject: common.mk: ifchange for mkconfig.rb * common.mk (RBCONFIG): use ifchange tool to see if the content is changed and update the timestamp file. * tool/mkconfig.rb: remove ifchange features. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/mkconfig.rb | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'tool/mkconfig.rb') diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index 63d0520dba..566f5a304e 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -19,17 +19,6 @@ $:.unshift(".") require "fileutils" mkconfig = File.basename($0) -rbconfig_rb = ARGV[0] || 'rbconfig.rb' -unless File.directory?(dir = File.dirname(rbconfig_rb)) - FileUtils.makedirs(dir, :verbose => true) -end - -config = "" -def config.write(arg) - concat(arg.to_s) -end -$stdout = config - fast = {'prefix'=>TRUE, 'ruby_install_name'=>TRUE, 'INSTALL'=>TRUE, 'EXEEXT'=>TRUE} win32 = /mswin/ =~ arch @@ -287,21 +276,4 @@ end CROSS_COMPILING = nil unless defined? CROSS_COMPILING EOS -$stdout = STDOUT -mode = IO::RDWR|IO::CREAT -mode |= IO::BINARY if defined?(IO::BINARY) -open(rbconfig_rb, mode) do |f| - if $timestamp and f.stat.size == config.size and f.read == config - puts "#{rbconfig_rb} unchanged" - else - puts "#{rbconfig_rb} updated" - f.rewind - f.truncate(0) - f.print(config) - end -end -if String === $timestamp - FileUtils.touch($timestamp) -end - # vi:set sw=2: -- cgit v1.2.3