class Xezat::Detector::Libtool
Public Instance Methods
detect(variables)
click to toggle source
# File lib/xezat/detector/libtool.rb, line 8 def detect(variables) Find.find(variables[:S]) do |file| return true if file.end_with?("#{File::SEPARATOR}ltmain.sh") end Find.find(variables[:S]) do |file| next unless file.end_with?("#{File::SEPARATOR}Makefile", "#{File::SEPARATOR}makefile") next if File.directory?(file) File.foreach(file) do |line| return true if line.lstrip.include?('libtool') end end false end