summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-15 14:12:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-15 14:12:36 +0000
commiteaab306b59c4a1905b67ff989339938d8ab67fe9 (patch)
treebf4dda7e139ada1c26af65ba7090cf94eb424942 /tool
parentd2a176028f2975f305ff06ca6984e68f7cd022fe (diff)
vpath.rb: separator for make
* tool/vpath.rb (VPath#list): default separator to PATH_SEPARATOR from configure.in for make, not same name constant of File for use in ruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/vpath.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/vpath.rb b/tool/vpath.rb
index 5241d2d544..5aa2f9f3fe 100644
--- a/tool/vpath.rb
+++ b/tool/vpath.rb
@@ -6,7 +6,7 @@ class VPath
def initialize(*list)
@list = list
@additional = []
- @separator = File::PATH_SEPARATOR
+ @separator = nil
end
def inspect
@@ -65,6 +65,7 @@ class VPath
end
def list
+ @separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"])
@additional.reject! do |dirs|
case dirs
when String