updated script

This commit is contained in:
Johannes Nickel 2013-06-11 12:19:46 +02:00
parent a34f2e9a67
commit 5e85367755

View file

@ -14,11 +14,9 @@ def checkForHeader(fileName)
if allLines[0] =~ /(^# Copyright)/ || allLines[1] =~ /(^# Copyright)/ if allLines[0] =~ /(^# Copyright)/ || allLines[1] =~ /(^# Copyright)/
foundHeader = true foundHeader = true
puts 'foundHeader'
end end
if allLines[0] =~ /(^#!\/)/ if allLines[0] =~ /(^#!\/)/
foundSheBang = true foundSheBang = true
puts 'foundSheBang'
end end
file.each do |line| file.each do |line|
@ -31,7 +29,6 @@ def checkForHeader(fileName)
t_file.puts line t_file.puts line
t_file.puts header t_file.puts header
else else
puts line
t_file.puts line.rstrip t_file.puts line.rstrip
end end
end end