updated filter for external scripts

This commit is contained in:
Johannes Nickel 2013-06-11 13:12:25 +02:00
parent 3f8b59784e
commit bb10bb600b
2 changed files with 2 additions and 4 deletions

View file

@ -1,8 +1,4 @@
#!/usr/bin/ruby -w
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
=begin
/***************************************************************************
* Copyright (C) 2008, Paul Lutus *

View file

@ -14,6 +14,8 @@ def checkForHeader(fileName)
if allLines[0] =~ /(^# Copyright)/ || allLines[1] =~ /(^# Copyright)/
foundHeader = true
elsif allLines[1] =~/^=begin/ #assume external script
foundHeader = true
end
if allLines[0] =~ /(^#!\/)/
foundSheBang = true