aboutsummaryrefslogtreecommitdiffstats
path: root/tool/generic_erb.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-15 07:46:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-15 07:46:55 +0000
commit805769ba6f60ab98ad51f0b5d41e15863ce580f0 (patch)
treee1cfeeed079e9d85bbfbbac79e9d5b0739e77a15 /tool/generic_erb.rb
parentd917074feab87a9d2722cf5d923a3feefca7ac17 (diff)
downloadruby-805769ba6f60ab98ad51f0b5d41e15863ce580f0.tar.gz
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
Diffstat (limited to 'tool/generic_erb.rb')
-rw-r--r--tool/generic_erb.rb4
1 files 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