diff --git a/LICENSE-MIT b/LICENSE-MIT index e91db966..cfd32379 100644 --- a/LICENSE-MIT +++ b/LICENSE-MIT @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2018-2020 by the respective authors +Copyright (C) 2018-2021 by the respective authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/utils/update_copyright.rb b/utils/update_copyright.rb index 2d56fd81..c86d8ac3 100755 --- a/utils/update_copyright.rb +++ b/utils/update_copyright.rb @@ -13,8 +13,5 @@ files = files.join(' ') year = Date.today.year -# Update "Copyright (c) 20..-20.." -`sed -i -- 's,\\(Copyright .c. 20..\\)-20..,\\1-#{year},g' #{files}` - -# Update "Copyright (c) 20.. Name" -> "Copyright (c) 20..-20.. Name" -`sed -i -- 's,\\(Copyright .c. 20..\\) ,\\1-#{year} ,g' #{files}` +`sed -i -- 's,\\(Copyright .* 20..\\)-20..,\\1-#{year},g' #{files}` +`sed -i -- 's,\\(Copyright .* #{year - 1}\\) ,\\1-#{year} ,g' #{files}`