Commit a65e2971 authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Backup of license_stamper

Getting this to update everything so we can just run it on Jan 1st on everything
that MIGraphX touches with an AMD license. Still working out the quirks.
parent d65d2033
......@@ -167,7 +167,6 @@ def openAndWriteFile(filename, message, commentChar):
hasOldAmdLic = hasKeySequence(
save, "2015-" + current_year +
" Advanced Micro Devices, Inc. All rights reserved.")
if hasOldAmdLic[0] is True and hasOtherLic[0] is False:
if debug is True:
print("....License Out of Date: Updating file ")
......@@ -205,6 +204,7 @@ def openAndWriteFile(filename, message, commentChar):
contents.write(data)
elif needs_update is False:
with open(filename, 'w') as contents:
#append the licence to the top of the file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment