mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-26 12:53:50 +00:00
Fix regex for dependency file analysis
On msys there are : in the file names, e.g. c:/msys/....
This commit is contained in:
parent
9823ea3891
commit
b8b0739c00
@ -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+/)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user