[devtools] Rewrite fix-copyright-headers.py

This commit is contained in:
MarcoFalke
2015-12-13 14:51:43 +01:00
parent 3cd836c1d8
commit fa6ad855e9
2 changed files with 34 additions and 41 deletions

View File

@@ -11,16 +11,16 @@ fix-copyright-headers.py
========================
Every year newly updated files need to have its copyright headers updated to reflect the current year.
If you run this script from src/ it will automatically update the year on the copyright header for all
.cpp and .h files if these have a git commit from the current year.
If you run this script from the root folder it will automatically update the year on the copyright header for all
source files if these have a git commit from the current year.
For example a file changed in 2014 (with 2014 being the current year):
For example a file changed in 2015 (with 2015 being the current year):
```// Copyright (c) 2009-2013 The Bitcoin Core developers```
would be changed to:
```// Copyright (c) 2009-2014 The Bitcoin Core developers```
```// Copyright (c) 2009-2015 The Bitcoin Core developers```
git-subtree-check.sh
====================