X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=check_copyright.py;h=49775fe57f120ff9a84d631a4902f876e2530f48;hb=ada2732bcf5c4b531a7d6dd2696883b188ae34a3;hp=c1353dac85d6b3b8c2632e031d361dd9c07b3096;hpb=474c2cd65280d793f1c81ca528bc92e1cff988e6;p=modules%2Fhydro.git diff --git a/check_copyright.py b/check_copyright.py index c1353dac..49775fe5 100644 --- a/check_copyright.py +++ b/check_copyright.py @@ -1,10 +1,15 @@ 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 + + if theFile=='src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx': + return True; #in the file the unicode is used + #print 'Checking %s...' % theFile aLines = open( theFile, 'r' ).readlines() if( len( aLines )==0 ): @@ -12,10 +17,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 ): @@ -34,3 +38,4 @@ def check_folder( theFolder ): check_folder( 'src/HYDROData' ) check_folder( 'src/HYDROGUI' ) check_folder( 'src/HYDROPy' ) +check_folder( 'src/HYDRO_tests' )