From c3b77e704abac0571316640be85dddd6c695c65d Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 15 May 2018 07:46:55 +0000 Subject: [PATCH] generic_erb.rb: get rid of fileutils * tool/generic_erb.rb: get rid of FileUtils.touch, not to depend on fileutils.rb which will depend on rbconfig.rb which does not exist when creating encdb.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/generic_erb.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/generic_erb.rb b/tool/generic_erb.rb index 8672907b99..3904b570c4 100644 --- a/tool/generic_erb.rb +++ b/tool/generic_erb.rb @@ -5,7 +5,6 @@ require 'erb' require 'optparse' -require 'fileutils' $:.unshift(File.dirname(__FILE__)) require 'vpath' require 'colorize' @@ -55,7 +54,8 @@ if output dir, base = File.split(output) timestamp = File.join(dir, ".time." + base) end - FileUtils.touch(timestamp) + File.open(timestamp, 'a') {} + File.utime(nil, nil, timestamp) end else print result