summaryrefslogtreecommitdiff
path: root/tool/vpath.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-20 13:24:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-20 13:24:31 +0000
commitc6699319417c244ad6dce99b608ddd4635f5bdbc (patch)
tree588e06f22254b2eaf5cb13fd195c93bbbef4ba7d /tool/vpath.rb
parent8d83736f0c7ae9fed8ae4e19768fa035bb734cac (diff)
vpath.rb: hack for msys make
* tool/vpath.rb (VPath#def_options): hack for msys make, which converts a command line argument to non-msys command seems like a path list automagically. [Bug #7710] [ruby-core:51489] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/vpath.rb')
-rw-r--r--tool/vpath.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/vpath.rb b/tool/vpath.rb
index 5aa2f9f..cfa4831 100644
--- a/tool/vpath.rb
+++ b/tool/vpath.rb
@@ -59,8 +59,9 @@ class VPath
opt.on("-L", "--vpath=PATH LIST", "add directories to search path") {|dirs|
@additional << [dirs]
}
- opt.on("--path-separator=SEP", /\A\W\z/, "separator for vpath") {|sep|
- @separator = sep
+ opt.on("--path-separator=SEP", /\A(?:\W\z|\.(\W).+)/, "separator for vpath") {|sep, vsep|
+ # hack for msys make.
+ @separator = vsep || sep
}
end