-
Notifications
You must be signed in to change notification settings - Fork 6
Update copyright in all files each new year
Marc edited this page Jan 2, 2025
·
3 revisions
Each new year, the copyright notice files must be updated in all files, according to the pattern Copyright (c) 2023-2025 Orange. All rights reserved.
(with 2025 replaced by current year).
The copyright notice must be manually changed in few files, where it is hard-coded:
- licence and release notes
- LICENSE
- packaging/common/khiops/README.txt
- installer
- packaging/windows/nsis/khiops.nsi
- tools, using '#define _COPYRIGHT_LABEL ..." in files Version.h
- khiops: src/Learning/KWUtils/KWKhiopsVersion.h
- genum: src/Learning/genum/Version.h
- khisto: src/Learning/khisto/Version.h
- _khiopsgetprocnumber: src/Norm/_khiopsgetprocnumber/Version.h
- genere: src/Norm/genere/Version.h
Otherwise, the update is automatic:
- scripts/update-copyright.py: to update all source files during the the pre-commit
- src/Norm/genere/TableGenerator.cpp: to generate the correct copyright notice in the GUI genere tool
Just force a pre-commit using pre-commit run --all-files
to update the copyright in all the source files.