6 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
7 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
18 Find.find('.') do |filename|
19 if filename =~ /\.(cpp|h)$/
20 code = File.open(filename) {|f| f.read}
21 unless code =~ /copyright/i
22 File.open(filename, 'w') {|f| f.write(stmt + code)}