You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [devtools] script support for managing source file copyright headers
This is a port of Core bitcoin#8674
Three subcommands to this script:
1) ./copyright_header.py report
Examines git-tracked files with extensions that match:
INCLUDE = ['*.h', '*.cpp', '*.cc', '*.c', '*.py']
Helps to:
-> Identify source files without copyright
-> Identify source files added with something other than "The Bitcoin Core
developers" holder so we can be sure it is appropriate
-> Identify unintentional typos in the copyright line
2) ./copyright_header.py update
Replaces fix-copyright-headers.py. It does file editing in native python
rather than subprocessing out to perl as was the case with
fix-copyright-headers.py. It also shares code with the 'report' functions.
3) ./copyright_header.py insert
Inserts a copyright header into a source file with the proper format and
dates.
* [scripts] Add missing univalue file to copyright_header.py
* Adapt copyright_header.py to the BU repo
- add a new set of expected copyright holders
- define "The Bitcoin Unlimited developers" as the default copyright
holder
Copy file name to clipboardExpand all lines: contrib/devtools/README.md
+57-15Lines changed: 57 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,64 @@ clang-format.py
7
7
8
8
A script to format cpp source code according to [.clang-format](../../src/.clang-format). This should only be applied to new files or files which are currently not actively developed on. Also, git subtrees are not subject to formatting.
9
9
10
-
fix-copyright-headers.py
11
-
========================
12
-
13
-
Every year newly updated files need to have its copyright headers updated to reflect the current year.
14
-
If you run this script from the root folder it will automatically update the year on the copyright header for all
15
-
source files if these have a git commit from the current year.
16
-
17
-
For example a file changed in 2015 (with 2015 being the current year):
18
-
19
-
```// Copyright (c) 2009-2013 The Bitcoin Unlimited developers```
20
-
// Copyright (c) 2015-2017 The Bitcoin Unlimited developers
21
-
22
-
would be changed to:
10
+
copyright\_header.py
11
+
====================
23
12
24
-
```// Copyright (c) 2009-2015 The Bitcoin Unlimited developers```
25
-
// Copyright (c) 2015-2017 The Bitcoin Unlimited developers
13
+
Provides utilities for managing copyright headers of `The Bitcoin Unlimited
14
+
developers` in repository source files. It has three subcommands:
0 commit comments