HomePhabricator

[devtools] script support for managing source file copyright headers

Description

[devtools] script support for managing source file copyright headers

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

  1. ./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.

  1. ./copyright_header.py insert

Inserts a copyright header into a source file with the proper format and
dates.

Details

Provenance
isle2983 <isle2983@yahoo.com>Authored on Sep 8 2016, 01:21
deadalnixPushed on May 14 2017, 22:04
Parents
rABC8ea44405e76f: Merge #8645: Remove unused Qt 4.6 patch.
Branches
Unknown
Tags
Unknown

Event Timeline