X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=check_copyright.py;h=2f4e3cc2e632d6638f5b84cf5c862d27fad97fef;hb=b7783f8b6083202f887c371c74395cf7da13b990;hp=c1353dac85d6b3b8c2632e031d361dd9c07b3096;hpb=474c2cd65280d793f1c81ca528bc92e1cff988e6;p=modules%2Fhydro.git diff --git a/check_copyright.py b/check_copyright.py index c1353dac..2f4e3cc2 100644 --- a/check_copyright.py +++ b/check_copyright.py @@ -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 ):