Dash Core  0.12.2.1
P2P Digital Currency
fix-copyright-headers.py File Reference

Go to the source code of this file.

Namespaces

 
 fix
 -copyright-headers
 

Functions

def fix-copyright-headers.get_git_date (file_path)
 

Variables

 fix-copyright-headers.year = time.gmtime()[0]
 
string fix-copyright-headers.CMD_GIT_DATE = 'git log --format=@%%at -1 %s | date +"%%Y" -u -f -'
 
string fix-copyright-headers.CMD_REGEX = "perl -pi -e 's/(20\d\d)(?:-20\d\d)? The Bitcoin/$1-%s The Bitcoin/' %s"
 
 fix-copyright-headers.REGEX_CURRENT = re.compile("%s The Bitcoin" % year)
 
string fix-copyright-headers.CMD_LIST_FILES = "find %s | grep %s"
 
list fix-copyright-headers.FOLDERS = ["./qa", "./src"]
 
list fix-copyright-headers.EXTENSIONS = [".cpp",".h", ".py"]
 
 fix-copyright-headers.file_path = os.getcwd() + file_path[1:-1]
 
def fix-copyright-headers.git_date = get_git_date(file_path)
 
int fix-copyright-headers.n = n + 1