Skip to content

Commit

Permalink
Updated copyright year fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Aug 9, 2024
1 parent a7ffcab commit 1d5ab4d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,10 @@ def update_copyright_year(directory):
for filename in files:
if filename.endswith('.h') or filename.endswith('.c') or 'LICENSE' == filename:
file_path = os.path.join(root, filename)
replace_copyright_year(file_path)
if 'thirdparty' in file_path:
if re.search('callbacks_default|usb_isr_routines', file_path):
print('Updating file "%s"' % file_path)
replace_copyright_year(file_path)
else:
print('Updating file "%s"' % file_path)
replace_copyright_year(file_path)

0 comments on commit 1d5ab4d

Please sign in to comment.