# File utils.rb, line 356 def findCatalogKeyword( keyword, catalogFile="docs/CATALOG" ) val = nil if File::exists? catalogFile message "Extracting '#{keyword}' from CATALOG file (%s).\n" % catalogFile File::foreach( catalogFile ) {|line| debugMsg( "Examining line #{line.inspect}..." ) val = $1.strip and break if /^#\s*#{keyword}:\s*(.*)$/i =~ line } end return val end