зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
02c1358be5
Коммит
c3b77e704a
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче