uhd: fix copyright years on new files

This commit is contained in:
Josh Blum 2011-01-06 12:56:12 -08:00
parent ef8d79673d
commit 3d02c07470
9 changed files with 9 additions and 8 deletions

View file

@ -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)

View file

@ -1,5 +1,5 @@
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by