Commit 7b37bb59 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #691 from masuidrive/fixed_build_dependency

Fixed build dependency
parents 4fd63b74 b28a9c84
def get_dependencies(file) def get_dependencies(file)
file = file.pathmap('%n.d') unless File.extname(file) == '.d' file = file.ext('d') unless File.extname(file) == '.d'
if File.exists?(file) if File.exists?(file)
File.read(file).gsub("\\\n ", "").scan(/^\S+:\s+(.+)$/).flatten.map {|s| s.split(' ') }.flatten File.read(file).gsub("\\\n ", "").scan(/^\S+:\s+(.+)$/).flatten.map {|s| s.split(' ') }.flatten
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment