diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-06 12:56:12 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-06 12:56:12 -0800 |
commit | 3d02c07470e83edfa118c7ff36e793ffa883ceff (patch) | |
tree | 556ab9252e562850520f842146bdcdfa22d05222 /host/fix-copyright-years | |
parent | ef8d79673d29f2bd62e36b7b71d2e0430d3faf0b (diff) | |
download | uhd-3d02c07470e83edfa118c7ff36e793ffa883ceff.tar.gz uhd-3d02c07470e83edfa118c7ff36e793ffa883ceff.tar.bz2 uhd-3d02c07470e83edfa118c7ff36e793ffa883ceff.zip |
uhd: fix copyright years on new files
Diffstat (limited to 'host/fix-copyright-years')
-rwxr-xr-x | host/fix-copyright-years | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/fix-copyright-years b/host/fix-copyright-years index 8de7d74ba..f5a3d5822 100755 --- a/host/fix-copyright-years +++ b/host/fix-copyright-years @@ -45,6 +45,7 @@ def fix_co_years(files): year_now = datetime.datetime.now().year all_years = min(log_years), max(list(log_years)+[year_now]) #add the current year all_years_str = '%s-%s'%all_years + if all_years[0] == all_years[1]: all_years_str = str(all_years[0]) new_text = ''.join(lines[:num] + [line.replace(co_years_str, all_years_str)] + lines[num+1:]) open(file, 'w').write(new_text) |