Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'BR_LAND_COVER' of ssh://git.salome-platform.org/modules/hydro into...
[modules/hydro.git]
/
check_copyright.py
diff --git
a/check_copyright.py
b/check_copyright.py
index c1353dac85d6b3b8c2632e031d361dd9c07b3096..2f4e3cc2e632d6638f5b84cf5c862d27fad97fef 100644
(file)
--- a/
check_copyright.py
+++ b/
check_copyright.py
@@
-1,7
+1,8
@@
import os
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
def check_file( theFile ):
global files
@@
-12,10
+13,9
@@
def check_file( theFile ):
return False
aFirstLine = aLines[0][:-1]
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 'Incorrect copyright in the', theFile
- #print aFirstLine
- #print theCopyright
def check_folder( theFolder ):
def check_folder( theFolder ):