mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/compile_prelude.rb: absolute path may not start with a slash.
pointed by usa. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f1bc46f06d
commit
479c06d19d
2 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,13 @@
|
||||||
|
Thu Nov 15 17:28:21 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* tool/compile_prelude.rb: absolute path may not start with a slash.
|
||||||
|
pointed by usa.
|
||||||
|
|
||||||
Thu Nov 15 17:07:54 2007 Tanaka Akira <akr@fsij.org>
|
Thu Nov 15 17:07:54 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* tool/compile_prelude.rb: fix first substitution.
|
* tool/compile_prelude.rb: fix first substitution.
|
||||||
use constant for prefix.
|
use constant for prefix.
|
||||||
|
pointed by Richard Kilmer.
|
||||||
|
|
||||||
Thu Nov 15 14:29:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Nov 15 14:29:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,8 @@ lines_list = preludes.map {|filename|
|
||||||
unless mkconf
|
unless mkconf
|
||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
mkconf = RbConfig::MAKEFILE_CONFIG.merge('prefix'=>'#{TMP_RUBY_PREFIX}')
|
mkconf = RbConfig::MAKEFILE_CONFIG.merge('prefix'=>'#{TMP_RUBY_PREFIX}')
|
||||||
exlen = $:.grep(%r{\A/}).last.length - RbConfig::CONFIG["prefix"].length
|
exlen = $:.reverse.find{|e|e!="."}.length - RbConfig::CONFIG["prefix"].length
|
||||||
setup_ruby_prefix = "TMP_RUBY_PREFIX = $:.grep(%r{\\A/}).last[0..#{-exlen-1}]\n"
|
setup_ruby_prefix = "TMP_RUBY_PREFIX = $:.reverse.find{|e|e!=\".\"}[0..#{-exlen-1}]\n"
|
||||||
teardown_ruby_prefix = 'Object.class_eval { remove_const "TMP_RUBY_PREFIX" }'
|
teardown_ruby_prefix = 'Object.class_eval { remove_const "TMP_RUBY_PREFIX" }'
|
||||||
end
|
end
|
||||||
if RbConfig::MAKEFILE_CONFIG.has_key? key
|
if RbConfig::MAKEFILE_CONFIG.has_key? key
|
||||||
|
|
Loading…
Add table
Reference in a new issue