Skip to content

Commit fafe7b3

Browse files
author
MarcoFalke
committed
contrib: Make fix-copyright-headers.py more portable
1 parent fa27c0a commit fafe7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/devtools/fix-copyright-headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import re
1717

1818
year = time.gmtime()[0]
19-
CMD_GIT_DATE = 'git log --format=@%%at -1 %s | date +"%%Y" -u -f -'
19+
CMD_GIT_DATE = 'git log --format=%%ad --date=short -1 %s | cut -d"-" -f 1'
2020
CMD_REGEX= "perl -pi -e 's/(20\d\d)(?:-20\d\d)? The Bitcoin/$1-%s The Bitcoin/' %s"
2121
REGEX_CURRENT= re.compile("%s The Bitcoin" % year)
2222
CMD_LIST_FILES= "find %s | grep %s"

0 commit comments

Comments
 (0)