Class: Xezat::Detector::GettextDevel
- Inherits:
-
Object
- Object
- Xezat::Detector::GettextDevel
- Defined in:
- lib/xezat/detector/gettext-devel.rb
Instance Method Summary collapse
Instance Method Details
#detect(variables) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/xezat/detector/gettext-devel.rb', line 6 def detect(variables) Find.find(variables[:S]) do |file| next unless file.end_with?("#{File::SEPARATOR}configure.ac", "#{File::SEPARATOR}configure.in") File.foreach(file) do |line| return true if /AM_GNU_GETTEXT|AM_ICONV|AC_GGZ_INTL/.match?(line.lstrip) end end false end |