Skip to content

Commit ba6315d

Browse files
committed
contrib: remove copyright_header.py
1 parent 3e4765e commit ba6315d

File tree

2 files changed

+0
-660
lines changed

2 files changed

+0
-660
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)