Salome HOME
refs #568: correct margin and spacing.
[modules/hydro.git] / check_copyright.py
index c1353dac85d6b3b8c2632e031d361dd9c07b3096..2f4e3cc2e632d6638f5b84cf5c862d27fad97fef 100644 (file)
@@ -1,7 +1,8 @@
 
 import os
 
-theCopyright = '// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE'
+theCopyright_line1 = '// Copyright (C) 2014-2015  EDF-R&D'
+theCopyright_line2 = '// This library is free software; you can redistribute it and/or'
 
 def check_file( theFile ):
   global files
@@ -12,10 +13,9 @@ def check_file( theFile ):
     return False
 
   aFirstLine = aLines[0][:-1]
-  if( aFirstLine != theCopyright ):
+  aSecondLine = aLines[1][:-1]
+  if( aFirstLine != theCopyright_line1 or aSecondLine != theCopyright_line2 ):
     print 'Incorrect copyright in the', theFile
-    #print aFirstLine
-    #print theCopyright
  
 
 def check_folder( theFolder ):