From fb33dddacf3834a52df597eb3f469649227fbd8e Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Fri, 1 Jan 2021 21:07:58 +0100 Subject: [PATCH] Copyright update, again --- LICENSE-MIT | 2 +- utils/update_copyright.rb | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) 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}`