From 5a37dd05dbd29ddee97c7181dfdabe062161ad00 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Thu, 31 Jan 2019 14:30:29 +0100
Subject: [PATCH] improvements

---
 do-copyright.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/do-copyright.py b/do-copyright.py
index 4e05422f..8e37f6be 100755
--- a/do-copyright.py
+++ b/do-copyright.py
@@ -31,7 +31,7 @@ def checkNote(filename):
             lines.append(line)            
         file.close()
 
-    searchStatus = 0 #0:before comment block, #1 in comment block, #2 found copyright
+    searchStatus = 0 # 0:before comment block, #1 in comment block, #2 found copyright
     blockStart = 0
     for iLine in range(len(lines)):
         line = lines[iLine]
@@ -41,10 +41,10 @@ def checkNote(filename):
         if "copyright" in line.lower() and searchStatus>0:
             searchStatus = 2
         if "*/" in line:
-            searchStatus = 0
             if searchStatus>=2:
                 startNote.append(blockStart)
                 endNote.append(iLine)
+            searchStatus = 0
         iLine += 1
         
     # now check if first copyright notices is already identical...
-- 
GitLab