lib/xezat/generator/pkgconfig.rb in xezat-0.2.3 vs lib/xezat/generator/pkgconfig.rb in xezat-0.3.0

- old
+ new

@@ -97,10 +97,10 @@ fa.write(rewritten_ac) makefile_am = File.expand_path(File.join(srcdir, 'Makefile.am')) raise AutotoolsFileNotFoundError unless File.exist?(makefile_am) - if /pkgconfig_DATA/.match?(File.read(makefile_am)) + if File.read(makefile_am).include?('pkgconfig_DATA') Xezat.logger.debug(" Not rewrite #{makefile_am}") break end commands_am = File.read(File.expand_path(File.join(TEMPLATE_DIR, 'Makefile.am')))