Handle multi-line "written by/for" comments.
[openssl.git] / util / copyright.pl
index ccc70af63f87985b63997bac9f01121d6ad519f5..4367f152a6aa17ee349691abc9731e87c88499de 100644 (file)
@@ -30,6 +30,12 @@ sub check_comment()
         }
     }
 
+    # Look for a multi-line "written by" comment.
+    if ( ! $skipit ) {
+        my $text = join('', @lines);
+        $skipit = 1 if $text =~ m/Written by.*for the OpenSSL Project/is;
+    }
+
     print @lines unless $skipit;
     return $skipit;
 }