From 3d02c07470e83edfa118c7ff36e793ffa883ceff Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 6 Jan 2011 12:56:12 -0800 Subject: uhd: fix copyright years on new files --- host/fix-copyright-years | 1 + 1 file changed, 1 insertion(+) (limited to 'host/fix-copyright-years') 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) -- cgit v1.2.3