From b8b0739c00c8b03fd06f6448e0fd3017682b3638 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 4 Aug 2010 22:49:27 +0200 Subject: [PATCH] Fix regex for dependency file analysis On msys there are : in the file names, e.g. c:/msys/.... --- rake.d/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake.d/helpers.rb b/rake.d/helpers.rb index bffbef6b9..4af89e8ff 100644 --- a/rake.d/helpers.rb +++ b/rake.d/helpers.rb @@ -63,7 +63,7 @@ def handle_deps(target, exit_code) File.open("#{$dependency_dir}/" + dep_file.gsub(/\//, '_').ext('rb'), "w") do |out| line = IO.readlines(dep_file).collect { |line| line.chomp }.join(" ").gsub(/\\/, ' ').gsub(/\s+/, ' ') - if /(.*):\s*(.*)/.match(line) + if /(.+?):\s*([^\s].*)/.match(line) target = $1 sources = $2.gsub(/^\s+/, '').gsub(/\s+$/, '').split(/\s+/)