From c6699319417c244ad6dce99b608ddd4635f5bdbc Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 20 Jan 2013 13:24:31 +0000 Subject: 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 --- tool/vpath.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tool/vpath.rb') diff --git a/tool/vpath.rb b/tool/vpath.rb index 5aa2f9f3fe..cfa48313de 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 -- cgit v1.2.3