HomePhabricator

[devtools] script support for managing source file copyright headers
159597a2b896Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING8ea44405e76f: Merge #8645: Remove unused Qt 4.6 patch.
Branches
Unknown
Tags
Unknown

Event Timeline