Skip to content

Commit 7249bcc

Browse files
committed
Merge bitcoin/bitcoin#34119: contrib: remove copyright_header.py
ba6315d contrib: remove copyright_header.py (fanquake) 3e4765e scripted-diff: [doc] Unify stale copyright headers (fanquake) Pull request description: After #34084, our copyright headers shouldn't need "managing"; so remove the Python script. ACKs for top commit: fjahr: ACK ba6315d rkrux: crACK [ba6315d](bitcoin/bitcoin@ba6315d) janb84: ACK ba6315d Tree-SHA512: c0d6ed0a71803c5ae6c70260fa4162bea1f1b24cf6fc9b58e018bb9d6a673d2d59c25a17deda067a268024e3757081e3a214680e1e626d71c0debc5066d5f623
2 parents 0f6a526 + ba6315d commit 7249bcc

File tree

3 files changed

+1
-661
lines changed

3 files changed

+1
-661
lines changed

contrib/devtools/README.md

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -61,65 +61,6 @@ the script should be called from the git root folder as follows.
6161
git diff -U0 HEAD~1.. | ./contrib/devtools/clang-format-diff.py -p1 -i -v
6262
```
6363

64-
copyright\_header.py
65-
====================
66-
67-
Provides utilities for managing copyright headers of `The Bitcoin Core
68-
developers` in repository source files. It has three subcommands:
69-
70-
```
71-
$ ./copyright_header.py report <base_directory> [verbose]
72-
$ ./copyright_header.py update <base_directory>
73-
$ ./copyright_header.py insert <file>
74-
```
75-
Running these subcommands without arguments displays a usage string.
76-
77-
copyright\_header.py report \<base\_directory\> [verbose]
78-
---------------------------------------------------------
79-
80-
Produces a report of all copyright header notices found inside the source files
81-
of a repository. Useful to quickly visualize the state of the headers.
82-
Specifying `verbose` will list the full filenames of files of each category.
83-
84-
copyright\_header.py update \<base\_directory\> [verbose]
85-
---------------------------------------------------------
86-
Updates all the copyright headers of `The Bitcoin Core developers` which were
87-
changed in a year more recent than is listed. For example:
88-
```
89-
// Copyright (c) <firstYear>-<lastYear> The Bitcoin Core developers
90-
```
91-
will be updated to:
92-
```
93-
// Copyright (c) <firstYear>-<lastModifiedYear> The Bitcoin Core developers
94-
```
95-
where `<lastModifiedYear>` is obtained from the `git log` history.
96-
97-
This subcommand also handles copyright headers that have only a single year. In
98-
those cases:
99-
```
100-
// Copyright (c) <year> The Bitcoin Core developers
101-
```
102-
will be updated to:
103-
```
104-
// Copyright (c) <year>-<lastModifiedYear> The Bitcoin Core developers
105-
```
106-
where the update is appropriate.
107-
108-
copyright\_header.py insert \<file\>
109-
------------------------------------
110-
Inserts a copyright header for `The Bitcoin Core developers` at the top of the
111-
file in either Python or C++ style as determined by the file extension. If the
112-
file is a Python file and it has `#!` starting the first line, the header is
113-
inserted in the line below it.
114-
115-
The copyright dates will be set to be `<year_introduced>-<current_year>` where
116-
`<year_introduced>` is according to the `git log` history. If
117-
`<year_introduced>` is equal to `<current_year>`, it will be set as a single
118-
year rather than two hyphenated years.
119-
120-
If the file already has a copyright for `The Bitcoin Core developers`, the
121-
script will exit.
122-
12364
gen-manpages.py
12465
===============
12566

0 commit comments

Comments
 (0)