Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split license headers into separate template files
- Loading branch information
Showing
17 changed files
with
162 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ packageName }} is free software: you can redistribute it | ||
and/or modify it under the terms of the GNU Affero General Public | ||
License as published by the Free Software Foundation, either version | ||
3 of the License, or (at your option) any later version. | ||
|
||
{{ packageName }} is distributed in the hope that it will be | ||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
|
||
You should have received a copy of the GNU Affero General Public | ||
License along with {{ packageName }}. | ||
If not, see <https://www.gnu.org/licenses/>. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/AGPL-3.0 GNU Affero General Public License v3.0 or later |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
implied. See the License for the specific language governing | ||
permissions and limitations under the License. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/Apache-2.0 Apache License, Version 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ packageName }} is open source software: you can distribute | ||
it and/or modify it under the terms of the BSD 2-Clause "Simplified" | ||
License (the "License"). You may not use this file except in | ||
compliance with the License. | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
implied. See the License for the specific language governing | ||
permissions and limitations under the License. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/BSD-2-Clause BSD 2-Clause "Simplified" License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ packageName }} is open source software: you can distribute | ||
it and/or modify it under the terms of the BSD 3-Clause "New" or | ||
"Revised" License (the "License"). You may not use this file except | ||
in compliance with the License. | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
implied. See the License for the specific language governing | ||
permissions and limitations under the License. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause "New" or "Revised" License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ packageName }} is free software: you can redistribute it | ||
and/or modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation, either version 3 of | ||
the License, or (at your option) any later version. | ||
|
||
{{ packageName }} is distributed in the hope that it will be | ||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with {{ packageName }}. | ||
If not, see <https://www.gnu.org/licenses/>. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/GPL-3.0 GNU General Public License v3.0 or later |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ packageName }} is Ethical Open Source (EOS) software: you can | ||
distribute it and/or modify it under the terms of the Hippocratic | ||
License version 2.1 (the "License"). You may not use this file | ||
except in compliance with the License. | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
implied. See the License for the specific language governing | ||
permissions and limitations under the License. | ||
|
||
@copyright {{ copyright }} | ||
@license https://spdx.org/licenses/Hippocratic-2.1.html Hippocratic License 2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ packageName }} is free software: you can redistribute it | ||
and/or modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation, either version | ||
3 of the License, or (at your option) any later version. | ||
|
||
{{ packageName }} is distributed in the hope that it will be | ||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
|
||
You should have received a copy of the GNU Lesser General Public | ||
License along with {{ packageName }}. | ||
If not, see <https://www.gnu.org/licenses/>. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/LGPL-3.0 GNU Lesser General Public License v3.0 or later |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ packageName }} is open source software: you can distribute | ||
it and/or modify it under the terms of the MIT No Attribution | ||
license (the "License"). You may not use this file except in | ||
compliance with the License. | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
implied. See the License for the specific language governing | ||
permissions and limitations under the License. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/MIT-0 MIT No Attribution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ packageName }} is open source software: you can distribute | ||
it and/or modify it under the terms of the MIT License | ||
(the "License"). You may not use this file except in | ||
compliance with the License. | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
implied. See the License for the specific language governing | ||
permissions and limitations under the License. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/MIT MIT License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
@copyright {{ copyright }} | ||
@license https://opensource.org/licenses/MPL-2.0 Mozilla Public License 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@copyright {{ copyright }}. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{ packageName }} is free and unencumbered software released | ||
into the public domain. For more information, please view the | ||
UNLICENSE file that was distributed with this source code. | ||
|
||
@license https://opensource.org/licenses/Unlicense The Unlicense |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% set headerTemplate %}header/{{ license }}.twig{% endset %} | ||
{% set copyright %}Copyright (c) {{ copyrightHolder }}{% if copyrightEmail %} <{{ copyrightEmail }}>{% elseif copyrightUrl %} <{{ copyrightUrl }}>{% endif %}{% endset %} | ||
{% set licenseStatement %}{{ include(headerTemplate) }}{% endset %} | ||
|
||
/** | ||
* This file is part of {{ packageName }} | ||
* | ||
{{ licenseStatement|preg_replace('/^/m', ' * ')|preg_replace('/\\s+$/m', '')|trim }} | ||
*/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters