8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/xezat/detector/python39-docutils.rb', line 8
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 line.strip.start_with?('AC_CHECK_PROG') && line.index('rst2man').is_a?(Integer)
end
end
if variables.key?(:_meson_CYGCLASS_)
File.foreach(File.join(variables[:S], 'meson.build')) do |line|
return true if line.strip.index('rst2man').is_a?(Integer)
end
end
false
end
|