Skip to content

Commit

Permalink
contrib: Make fix-copyright-headers.py more portable
Browse files Browse the repository at this point in the history
Github-Pull: #8607
Rebased-From: fafe7b3432d5117e3f207eafe2fca1f9637b24f6
  • Loading branch information
MarcoFalke authored and luke-jr committed Sep 21, 2016
1 parent 486650a commit 752fbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/devtools/fix-copyright-headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
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"
Expand Down

0 comments on commit 752fbae

Please sign in to comment.