зеркало из https://github.com/github/ruby.git
fake.rb.in: expand builddir first
* template/fake.rb.in (builddir): expand __FILE__ first which may contain symblic links. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c2d50318a1
Коммит
2ec2c601a8
|
@ -21,9 +21,9 @@ class Object
|
||||||
patchlevel_str = RUBY_PATCHLEVEL == -1 ? "dev" : "p#{RUBY_PATCHLEVEL}"
|
patchlevel_str = RUBY_PATCHLEVEL == -1 ? "dev" : "p#{RUBY_PATCHLEVEL}"
|
||||||
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
||||||
end
|
end
|
||||||
builddir = File.dirname(__FILE__)
|
builddir = File.dirname(File.expand_path(__FILE__))
|
||||||
top_srcdir = File.expand_path("@srcdir@", builddir)
|
top_srcdir = File.expand_path("@srcdir@", builddir)
|
||||||
$:.unshift(File.expand_path(builddir))
|
$:.unshift(builddir)
|
||||||
fake = File.join(top_srcdir, "tool/fake.rb")
|
fake = File.join(top_srcdir, "tool/fake.rb")
|
||||||
eval(File.read(fake), nil, fake)
|
eval(File.read(fake), nil, fake)
|
||||||
ENV["RUBYOPT"] = ["-r#{__FILE__}", ENV["RUBYOPT"]].compact.join(" ")
|
ENV["RUBYOPT"] = ["-r#{__FILE__}", ENV["RUBYOPT"]].compact.join(" ")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче