#!/usr/bin/ruby exts = ['m', 'cpp', 'sh'] # check license in files, add it if not present require 'find' updated = 0 conform = 0 exts.each() do |ext| puts "--- processing #{ext} files" license = IO.readlines('license.'+ext).join() Find.find('./') do |f| if File.file?(f) && File.extname(f) == '.'+ext content = '' header = '' IO.readlines(f).each() do |line| if content.length == 0 && (ext == 'xml' || ext == 'html') && (line.index('