mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-18 19:10:11 +00:00
contrib: Make fix-copyright-headers.py more portable
Github-Pull: #8607 Rebased-From: fafe7b3432d5117e3f207eafe2fca1f9637b24f6
This commit is contained in:
parent
486650ae6a
commit
752fbae697
@ -16,7 +16,7 @@ import time
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
year = time.gmtime()[0]
|
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"
|
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)
|
REGEX_CURRENT= re.compile("%s The Bitcoin" % year)
|
||||||
CMD_LIST_FILES= "find %s | grep %s"
|
CMD_LIST_FILES= "find %s | grep %s"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user