lib/blocks/compile.rb in bake-toolkit-2.20.3 vs lib/blocks/compile.rb in bake-toolkit-2.20.4

- old
+ new

@@ -200,16 +200,15 @@ def self.read_depfile(dep_filename, projDir) deps = [] begin deps_string = File.read(dep_filename) - if (deps_string.include?": ") + if not (deps_string.include?" \\\n") deps_string.each_line do |line| splitted = line.split(": ") deps << splitted[1].gsub(/[\\]/,'/') if splitted.length > 1 end else - deps_string = File.read(dep_filename) deps_string = deps_string.gsub(/\\\n/,'') dep_splitted = deps_string.split(/([^\\]) /).each_slice(2).map(&:join)[2..-1] deps = dep_splitted.map { |d| d.gsub(/[\\] /,' ').gsub(/[\\]/,'/').strip }.delete_if {|d| d == "" } end rescue Exception \ No newline at end of file