From 26bdabf8b55ec698127b4591facb025175e66b33 Mon Sep 17 00:00:00 2001 From: Katrina Owen Date: Fri, 26 Aug 2022 10:03:01 +0200 Subject: [PATCH] Use LICENSE from org-wide-files repo The org-wide-files repo will submit a change to the LICENSE file in a track if it differs. This copies the LICENSE that we have in the org-wide-files in order to start with the right file in the first place. --- LICENSE | 21 --------------------- LICENSE.md | 9 +++++++++ bin/bootstrap | 6 ------ 3 files changed, 9 insertions(+), 27 deletions(-) delete mode 100644 LICENSE create mode 100644 LICENSE.md diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 90e73be..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Exercism - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..721a39d --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +# MIT Licence + +Copyright 2021 Exercism + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/bin/bootstrap b/bin/bootstrap index 96f6d93..9f9b53a 100755 --- a/bin/bootstrap +++ b/bin/bootstrap @@ -82,12 +82,6 @@ system("rm -rf %s" % File.join(dir, "bin/bootstrap")) system("rm -rf %s" % File.join(dir, ".github/ISSUE_TEMPLATE.md")) system("mv %s/TRACK_README.md %s/README.md" % [dir, dir]) -f = File.join(dir, 'LICENSE') -contents = File.read(f) -File.open(f, "w") do |f| - f.write contents.gsub(/\d{4}/, Date.today.year.to_s) -end - f = File.join(dir, 'docs', 'config.json') contents = File.read(f) File.open(f, "w") do |f|