blob: 4d0fc1cad5f95a3654778e2cd3f1dd6909dffd4e [file] [log] [blame]
Salome Thirot9a500232021-05-13 17:02:27 +01001#######################
2Copyright header checks
3#######################
4
5This script checks that all text files staged for commit (new and
6modified) have the correct license header. It returns the list of files
7whose header is missing or not updated. To use it, make sure you have jinja2
8installed (if you are on linux you can run the setup.sh script to install it),
9then run the python script from the tfm repository with the name of the
10organization, for example: ``python3 run_header_check.py Arm`` To get the list
11of known organizations, run ``python3 run_header_check.py --help``.
12
13The list is stored in a python file called "orgs\_list.py", stored in the
14same directory as the script. To add a new organization, add a generic
15name and the official denomination used in the copyright header to this
16file.
17
18The copyright header must have the following structure:
19Copyright (c) <year>, <organisation>. (optional)All rights reserved.
20
21--------------
22
23*Copyright (c) 2021, Arm Limited. All rights reserved.*
24*SPDX-License-Identifier: BSD-3-Clause*