diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-07-01 12:39:04 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2016-09-21 02:43:47 +0000 |
commit | 752fbae697db0a255999695e83d163f21d2ebc15 (patch) | |
tree | 5c70ddb7eab25da9231785a03080df206ffd85b7 /contrib/devtools | |
parent | 486650ae6a8ab44c0ac4f8a935b51629c04c1282 (diff) | |
download | bitcoin-752fbae697db0a255999695e83d163f21d2ebc15.tar.xz |
contrib: Make fix-copyright-headers.py more portable
Github-Pull: #8607
Rebased-From: fafe7b3432d5117e3f207eafe2fca1f9637b24f6
Diffstat (limited to 'contrib/devtools')
-rwxr-xr-x | contrib/devtools/fix-copyright-headers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/devtools/fix-copyright-headers.py b/contrib/devtools/fix-copyright-headers.py index b6414a551f..31a81ae4fa 100755 --- a/contrib/devtools/fix-copyright-headers.py +++ b/contrib/devtools/fix-copyright-headers.py @@ -16,7 +16,7 @@ import time import re year = time.gmtime()[0] -CMD_GIT_DATE = 'git log --format=@%%at -1 %s | date +"%%Y" -u -f -' +CMD_GIT_DATE = 'git log --format=%%ad --date=short -1 %s | cut -d"-" -f 1' CMD_REGEX= "perl -pi -e 's/(20\d\d)(?:-20\d\d)? The Bitcoin/$1-%s The Bitcoin/' %s" REGEX_CURRENT= re.compile("%s The Bitcoin" % year) CMD_LIST_FILES= "find %s | grep %s" |