diff --git a/.config/cliff.toml b/.config/cliff.toml index 72c0a8ee..731c8601 100644 --- a/.config/cliff.toml +++ b/.config/cliff.toml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 # git-cliff ~ default configuration file # https://git-cliff.org/docs/configuration # @@ -8,6 +10,12 @@ [changelog] # changelog header header = """ + # Changelog\n """ # template for the changelog body diff --git a/.config/rust-toolchain.toml b/.config/rust-toolchain.toml index 25df94f9..f8b0aec7 100644 --- a/.config/rust-toolchain.toml +++ b/.config/rust-toolchain.toml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 [toolchain] channel = "1.70" components = [ diff --git a/.config/treefmt.nix b/.config/treefmt.nix index c2e1d5f6..586b54c7 100644 --- a/.config/treefmt.nix +++ b/.config/treefmt.nix @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 { projectRootFile = "Cargo.toml"; programs = { diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index ed11ee76..29a2f91d 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 # This file contains a list of commits that are not likely what you # are looking for in a blame, such as mass reformatting or renaming. # You can set this file as a default ignore file for blame by running diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 92b05c08..cd5e266c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 # Lines starting with a '#' are comments. # Each line is a file pattern followed by one or more owners. diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 3dbe7ec7..80ec7653 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 github: cafkafk diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 0086358d..77b8641e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT blank_issues_enabled: true diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 245c7bdc..0abadce7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: diff --git a/.github/workflows/apt.yml b/.github/workflows/apt.yml index 3a16db68..d2330a05 100644 --- a/.github/workflows/apt.yml +++ b/.github/workflows/apt.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT name: Apt Installation on: schedule: diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 4f12b462..cd1d5521 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT name: Security audit on: schedule: diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index 54ca6390..0e18f015 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT name: Conventional Commits on: push: diff --git a/.github/workflows/flake.yml b/.github/workflows/flake.yml index aff38e52..e313d5bd 100644 --- a/.github/workflows/flake.yml +++ b/.github/workflows/flake.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 on: workflow_dispatch: pull_request: diff --git a/.github/workflows/no-merge-commits.yml b/.github/workflows/no-merge-commits.yml index b3c844af..3d1b9364 100644 --- a/.github/workflows/no-merge-commits.yml +++ b/.github/workflows/no-merge-commits.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT name: No Merge Commits on: pull_request: diff --git a/.github/workflows/publish-flake.yml b/.github/workflows/publish-flake.yml index ffe70eba..598b0d7f 100644 --- a/.github/workflows/publish-flake.yml +++ b/.github/workflows/publish-flake.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT name: "Publish flake" on: push: diff --git a/.github/workflows/unit-tests-bsd.yml b/.github/workflows/unit-tests-bsd.yml index 5ae37c9a..2eebd84a 100644 --- a/.github/workflows/unit-tests-bsd.yml +++ b/.github/workflows/unit-tests-bsd.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT name: Unit tests (BSD) on: push: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 18b41d3c..2953896a 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT name: Unit tests on: push: diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index 430323cc..86ab9e11 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +# SPDX-FileCopyrightText: 2014 Benjamin Sago +# SPDX-License-Identifier: MIT name: Publish to Winget on: release: diff --git a/.gitignore b/.gitignore index 8d3118ef..52509262 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 # Nix Flake stuff result diff --git a/.pre-commit-config-non-nix.yaml b/.pre-commit-config-non-nix.yaml index 97b00b07..f1ed6371 100644 --- a/.pre-commit-config-non-nix.yaml +++ b/.pre-commit-config-non-nix.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 repos: - repo: local hooks: diff --git a/CHANGELOG.md b/CHANGELOG.md index ed2ba3f4..8197f976 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ + # Changelog ## [0.19.4] - 2024-09-18 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 01b35759..d056b092 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,4 +1,8 @@ + # Contributor Covenant Code of Conduct ## Our Pledge diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 08906e65..820adee7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,9 @@ + # Contributing to eza If you'd like to contribute to eza, there are several things you should make diff --git a/Cargo.toml b/Cargo.toml index 034da721..293b3bef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 [package] name = "eza" description = "A modern replacement for ls" @@ -14,7 +16,7 @@ exclude = [ ] readme = "README.md" homepage = "https://github.com/eza-community/eza" -license = "MIT" +license = "EUPL-1.2" repository = "https://github.com/eza-community/eza" version = "0.19.4" diff --git a/INSTALL.md b/INSTALL.md index 4080a3cd..5d348b78 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,3 +1,9 @@ + # Installation eza is available for Windows, macOS and Linux. diff --git a/LICENCE b/LICENCE deleted file mode 100644 index 3228cc99..00000000 --- a/LICENCE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Benjamin Sago - -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.txt b/LICENSE.txt new file mode 100644 index 00000000..6d8cea43 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,190 @@ +EUROPEAN UNION PUBLIC LICENCE v. 1.2 +EUPL © the European Union 2007, 2016 + +This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined below) which is provided under the +terms of this Licence. Any use of the Work, other than as authorised under this Licence is prohibited (to the extent such +use is covered by a right of the copyright holder of the Work). +The Work is provided under the terms of this Licence when the Licensor (as defined below) has placed the following +notice immediately following the copyright notice for the Work: + Licensed under the EUPL +or has expressed by any other means his willingness to license under the EUPL. + +1.Definitions +In this Licence, the following terms have the following meaning: +— ‘The Licence’:this Licence. +— ‘The Original Work’:the work or software distributed or communicated by the Licensor under this Licence, available +as Source Code and also as Executable Code as the case may be. +— ‘Derivative Works’:the works or software that could be created by the Licensee, based upon the Original Work or +modifications thereof. This Licence does not define the extent of modification or dependence on the Original Work +required in order to classify a work as a Derivative Work; this extent is determined by copyright law applicable in +the country mentioned in Article 15. +— ‘The Work’:the Original Work or its Derivative Works. +— ‘The Source Code’:the human-readable form of the Work which is the most convenient for people to study and +modify. +— ‘The Executable Code’:any code which has generally been compiled and which is meant to be interpreted by +a computer as a program. +— ‘The Licensor’:the natural or legal person that distributes or communicates the Work under the Licence. +— ‘Contributor(s)’:any natural or legal person who modifies the Work under the Licence, or otherwise contributes to +the creation of a Derivative Work. +— ‘The Licensee’ or ‘You’:any natural or legal person who makes any usage of the Work under the terms of the +Licence. +— ‘Distribution’ or ‘Communication’:any act of selling, giving, lending, renting, distributing, communicating, +transmitting, or otherwise making available, online or offline, copies of the Work or providing access to its essential +functionalities at the disposal of any other natural or legal person. + +2.Scope of the rights granted by the Licence +The Licensor hereby grants You a worldwide, royalty-free, non-exclusive, sublicensable licence to do the following, for +the duration of copyright vested in the Original Work: +— use the Work in any circumstance and for all usage, +— reproduce the Work, +— modify the Work, and make Derivative Works based upon the Work, +— communicate to the public, including the right to make available or display the Work or copies thereof to the public +and perform publicly, as the case may be, the Work, +— distribute the Work or copies thereof, +— lend and rent the Work or copies thereof, +— sublicense rights in the Work or copies thereof. +Those rights can be exercised on any media, supports and formats, whether now known or later invented, as far as the +applicable law permits so. +In the countries where moral rights apply, the Licensor waives his right to exercise his moral right to the extent allowed +by law in order to make effective the licence of the economic rights here above listed. +The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to any patents held by the Licensor, to the +extent necessary to make use of the rights granted on the Work under this Licence. + +3.Communication of the Source Code +The Licensor may provide the Work either in its Source Code form, or as Executable Code. If the Work is provided as +Executable Code, the Licensor provides in addition a machine-readable copy of the Source Code of the Work along with +each copy of the Work that the Licensor distributes or indicates, in a notice following the copyright notice attached to +the Work, a repository where the Source Code is easily and freely accessible for as long as the Licensor continues to +distribute or communicate the Work. + +4.Limitations on copyright +Nothing in this Licence is intended to deprive the Licensee of the benefits from any exception or limitation to the +exclusive rights of the rights owners in the Work, of the exhaustion of those rights or of other applicable limitations +thereto. + +5.Obligations of the Licensee +The grant of the rights mentioned above is subject to some restrictions and obligations imposed on the Licensee. Those +obligations are the following: + +Attribution right: The Licensee shall keep intact all copyright, patent or trademarks notices and all notices that refer to +the Licence and to the disclaimer of warranties. The Licensee must include a copy of such notices and a copy of the +Licence with every copy of the Work he/she distributes or communicates. The Licensee must cause any Derivative Work +to carry prominent notices stating that the Work has been modified and the date of modification. + +Copyleft clause: If the Licensee distributes or communicates copies of the Original Works or Derivative Works, this +Distribution or Communication will be done under the terms of this Licence or of a later version of this Licence unless +the Original Work is expressly distributed only under this version of the Licence — for example by communicating +‘EUPL v. 1.2 only’. The Licensee (becoming Licensor) cannot offer or impose any additional terms or conditions on the +Work or Derivative Work that alter or restrict the terms of the Licence. + +Compatibility clause: If the Licensee Distributes or Communicates Derivative Works or copies thereof based upon both +the Work and another work licensed under a Compatible Licence, this Distribution or Communication can be done +under the terms of this Compatible Licence. For the sake of this clause, ‘Compatible Licence’ refers to the licences listed +in the appendix attached to this Licence. Should the Licensee's obligations under the Compatible Licence conflict with +his/her obligations under this Licence, the obligations of the Compatible Licence shall prevail. + +Provision of Source Code: When distributing or communicating copies of the Work, the Licensee will provide +a machine-readable copy of the Source Code or indicate a repository where this Source will be easily and freely available +for as long as the Licensee continues to distribute or communicate the Work. +Legal Protection: This Licence does not grant permission to use the trade names, trademarks, service marks, or names +of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and +reproducing the content of the copyright notice. + +6.Chain of Authorship +The original Licensor warrants that the copyright in the Original Work granted hereunder is owned by him/her or +licensed to him/her and that he/she has the power and authority to grant the Licence. +Each Contributor warrants that the copyright in the modifications he/she brings to the Work are owned by him/her or +licensed to him/her and that he/she has the power and authority to grant the Licence. +Each time You accept the Licence, the original Licensor and subsequent Contributors grant You a licence to their contributions +to the Work, under the terms of this Licence. + +7.Disclaimer of Warranty +The Work is a work in progress, which is continuously improved by numerous Contributors. It is not a finished work +and may therefore contain defects or ‘bugs’ inherent to this type of development. +For the above reason, the Work is provided under the Licence on an ‘as is’ basis and without warranties of any kind +concerning the Work, including without limitation merchantability, fitness for a particular purpose, absence of defects or +errors, accuracy, non-infringement of intellectual property rights other than copyright as stated in Article 6 of this +Licence. +This disclaimer of warranty is an essential part of the Licence and a condition for the grant of any rights to the Work. + +8.Disclaimer of Liability +Except in the cases of wilful misconduct or damages directly caused to natural persons, the Licensor will in no event be +liable for any direct or indirect, material or moral, damages of any kind, arising out of the Licence or of the use of the +Work, including without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, loss +of data or any commercial damage, even if the Licensor has been advised of the possibility of such damage. However, +the Licensor will be liable under statutory product liability laws as far such laws apply to the Work. + +9.Additional agreements +While distributing the Work, You may choose to conclude an additional agreement, defining obligations or services +consistent with this Licence. However, if accepting obligations, You may act only on your own behalf and on your sole +responsibility, not on behalf of the original Licensor or any other Contributor, and only if You agree to indemnify, +defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against such Contributor by +the fact You have accepted any warranty or additional liability. + +10.Acceptance of the Licence +The provisions of this Licence can be accepted by clicking on an icon ‘I agree’ placed under the bottom of a window +displaying the text of this Licence or by affirming consent in any other similar way, in accordance with the rules of +applicable law. Clicking on that icon indicates your clear and irrevocable acceptance of this Licence and all of its terms +and conditions. +Similarly, you irrevocably accept this Licence and all of its terms and conditions by exercising any rights granted to You +by Article 2 of this Licence, such as the use of the Work, the creation by You of a Derivative Work or the Distribution +or Communication by You of the Work or copies thereof. + +11.Information to the public +In case of any Distribution or Communication of the Work by means of electronic communication by You (for example, +by offering to download the Work from a remote location) the distribution channel or media (for example, a website) +must at least provide to the public the information requested by the applicable law regarding the Licensor, the Licence +and the way it may be accessible, concluded, stored and reproduced by the Licensee. + +12.Termination of the Licence +The Licence and the rights granted hereunder will terminate automatically upon any breach by the Licensee of the terms +of the Licence. +Such a termination will not terminate the licences of any person who has received the Work from the Licensee under +the Licence, provided such persons remain in full compliance with the Licence. + +13.Miscellaneous +Without prejudice of Article 9 above, the Licence represents the complete agreement between the Parties as to the +Work. +If any provision of the Licence is invalid or unenforceable under applicable law, this will not affect the validity or +enforceability of the Licence as a whole. Such provision will be construed or reformed so as necessary to make it valid +and enforceable. +The European Commission may publish other linguistic versions or new versions of this Licence or updated versions of +the Appendix, so far this is required and reasonable, without reducing the scope of the rights granted by the Licence. +New versions of the Licence will be published with a unique version number. +All linguistic versions of this Licence, approved by the European Commission, have identical value. Parties can take +advantage of the linguistic version of their choice. + +14.Jurisdiction +Without prejudice to specific agreement between parties, +— any litigation resulting from the interpretation of this License, arising between the European Union institutions, +bodies, offices or agencies, as a Licensor, and any Licensee, will be subject to the jurisdiction of the Court of Justice +of the European Union, as laid down in article 272 of the Treaty on the Functioning of the European Union, +— any litigation arising between other parties and resulting from the interpretation of this License, will be subject to +the exclusive jurisdiction of the competent court where the Licensor resides or conducts its primary business. + +15.Applicable Law +Without prejudice to specific agreement between parties, +— this Licence shall be governed by the law of the European Union Member State where the Licensor has his seat, +resides or has his registered office, +— this licence shall be governed by Belgian law if the Licensor has no seat, residence or registered office inside +a European Union Member State. + + + Appendix + +‘Compatible Licences’ according to Article 5 EUPL are: +— GNU General Public License (GPL) v. 2, v. 3 +— GNU Affero General Public License (AGPL) v. 3 +— Open Software License (OSL) v. 2.1, v. 3.0 +— Eclipse Public License (EPL) v. 1.0 +— CeCILL v. 2.0, v. 2.1 +— Mozilla Public Licence (MPL) v. 2 +— GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3 +— Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for works other than software +— European Union Public Licence (EUPL) v. 1.1, v. 1.2 +— Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong Reciprocity (LiLiQ-R+). + +The European Commission may update this Appendix to later versions of the above licences without producing +a new version of the EUPL, as long as they provide the rights granted in Article 2 of this Licence and protect the +covered Source Code from exclusive appropriation. +All other changes or additions to this Appendix require the production of a new EUPL version. diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt new file mode 100644 index 00000000..13ca539f --- /dev/null +++ b/LICENSES/CC-BY-4.0.txt @@ -0,0 +1,156 @@ +Creative Commons Attribution 4.0 International + + Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 – Definitions. + + a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + + d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. + + g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. + + i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. + + 3. Term. The term of this Public License is specified in Section 6(a). + + 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. + + 5. Downstream recipients. + + A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. + + B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. + + 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). + +b. Other rights. + + 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this Public License. + + 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified form), You must: + + A. retain the following if it is supplied by the Licensor with the Licensed Material: + + i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + + B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and + + C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. + + 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; + + b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + + a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + + b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + + c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + + a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + + c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. + + d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. + +Section 8 – Interpretation. + + a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. + + c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. + + d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSES/EUPL-1.2.txt b/LICENSES/EUPL-1.2.txt new file mode 100644 index 00000000..6d8cea43 --- /dev/null +++ b/LICENSES/EUPL-1.2.txt @@ -0,0 +1,190 @@ +EUROPEAN UNION PUBLIC LICENCE v. 1.2 +EUPL © the European Union 2007, 2016 + +This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined below) which is provided under the +terms of this Licence. Any use of the Work, other than as authorised under this Licence is prohibited (to the extent such +use is covered by a right of the copyright holder of the Work). +The Work is provided under the terms of this Licence when the Licensor (as defined below) has placed the following +notice immediately following the copyright notice for the Work: + Licensed under the EUPL +or has expressed by any other means his willingness to license under the EUPL. + +1.Definitions +In this Licence, the following terms have the following meaning: +— ‘The Licence’:this Licence. +— ‘The Original Work’:the work or software distributed or communicated by the Licensor under this Licence, available +as Source Code and also as Executable Code as the case may be. +— ‘Derivative Works’:the works or software that could be created by the Licensee, based upon the Original Work or +modifications thereof. This Licence does not define the extent of modification or dependence on the Original Work +required in order to classify a work as a Derivative Work; this extent is determined by copyright law applicable in +the country mentioned in Article 15. +— ‘The Work’:the Original Work or its Derivative Works. +— ‘The Source Code’:the human-readable form of the Work which is the most convenient for people to study and +modify. +— ‘The Executable Code’:any code which has generally been compiled and which is meant to be interpreted by +a computer as a program. +— ‘The Licensor’:the natural or legal person that distributes or communicates the Work under the Licence. +— ‘Contributor(s)’:any natural or legal person who modifies the Work under the Licence, or otherwise contributes to +the creation of a Derivative Work. +— ‘The Licensee’ or ‘You’:any natural or legal person who makes any usage of the Work under the terms of the +Licence. +— ‘Distribution’ or ‘Communication’:any act of selling, giving, lending, renting, distributing, communicating, +transmitting, or otherwise making available, online or offline, copies of the Work or providing access to its essential +functionalities at the disposal of any other natural or legal person. + +2.Scope of the rights granted by the Licence +The Licensor hereby grants You a worldwide, royalty-free, non-exclusive, sublicensable licence to do the following, for +the duration of copyright vested in the Original Work: +— use the Work in any circumstance and for all usage, +— reproduce the Work, +— modify the Work, and make Derivative Works based upon the Work, +— communicate to the public, including the right to make available or display the Work or copies thereof to the public +and perform publicly, as the case may be, the Work, +— distribute the Work or copies thereof, +— lend and rent the Work or copies thereof, +— sublicense rights in the Work or copies thereof. +Those rights can be exercised on any media, supports and formats, whether now known or later invented, as far as the +applicable law permits so. +In the countries where moral rights apply, the Licensor waives his right to exercise his moral right to the extent allowed +by law in order to make effective the licence of the economic rights here above listed. +The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to any patents held by the Licensor, to the +extent necessary to make use of the rights granted on the Work under this Licence. + +3.Communication of the Source Code +The Licensor may provide the Work either in its Source Code form, or as Executable Code. If the Work is provided as +Executable Code, the Licensor provides in addition a machine-readable copy of the Source Code of the Work along with +each copy of the Work that the Licensor distributes or indicates, in a notice following the copyright notice attached to +the Work, a repository where the Source Code is easily and freely accessible for as long as the Licensor continues to +distribute or communicate the Work. + +4.Limitations on copyright +Nothing in this Licence is intended to deprive the Licensee of the benefits from any exception or limitation to the +exclusive rights of the rights owners in the Work, of the exhaustion of those rights or of other applicable limitations +thereto. + +5.Obligations of the Licensee +The grant of the rights mentioned above is subject to some restrictions and obligations imposed on the Licensee. Those +obligations are the following: + +Attribution right: The Licensee shall keep intact all copyright, patent or trademarks notices and all notices that refer to +the Licence and to the disclaimer of warranties. The Licensee must include a copy of such notices and a copy of the +Licence with every copy of the Work he/she distributes or communicates. The Licensee must cause any Derivative Work +to carry prominent notices stating that the Work has been modified and the date of modification. + +Copyleft clause: If the Licensee distributes or communicates copies of the Original Works or Derivative Works, this +Distribution or Communication will be done under the terms of this Licence or of a later version of this Licence unless +the Original Work is expressly distributed only under this version of the Licence — for example by communicating +‘EUPL v. 1.2 only’. The Licensee (becoming Licensor) cannot offer or impose any additional terms or conditions on the +Work or Derivative Work that alter or restrict the terms of the Licence. + +Compatibility clause: If the Licensee Distributes or Communicates Derivative Works or copies thereof based upon both +the Work and another work licensed under a Compatible Licence, this Distribution or Communication can be done +under the terms of this Compatible Licence. For the sake of this clause, ‘Compatible Licence’ refers to the licences listed +in the appendix attached to this Licence. Should the Licensee's obligations under the Compatible Licence conflict with +his/her obligations under this Licence, the obligations of the Compatible Licence shall prevail. + +Provision of Source Code: When distributing or communicating copies of the Work, the Licensee will provide +a machine-readable copy of the Source Code or indicate a repository where this Source will be easily and freely available +for as long as the Licensee continues to distribute or communicate the Work. +Legal Protection: This Licence does not grant permission to use the trade names, trademarks, service marks, or names +of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and +reproducing the content of the copyright notice. + +6.Chain of Authorship +The original Licensor warrants that the copyright in the Original Work granted hereunder is owned by him/her or +licensed to him/her and that he/she has the power and authority to grant the Licence. +Each Contributor warrants that the copyright in the modifications he/she brings to the Work are owned by him/her or +licensed to him/her and that he/she has the power and authority to grant the Licence. +Each time You accept the Licence, the original Licensor and subsequent Contributors grant You a licence to their contributions +to the Work, under the terms of this Licence. + +7.Disclaimer of Warranty +The Work is a work in progress, which is continuously improved by numerous Contributors. It is not a finished work +and may therefore contain defects or ‘bugs’ inherent to this type of development. +For the above reason, the Work is provided under the Licence on an ‘as is’ basis and without warranties of any kind +concerning the Work, including without limitation merchantability, fitness for a particular purpose, absence of defects or +errors, accuracy, non-infringement of intellectual property rights other than copyright as stated in Article 6 of this +Licence. +This disclaimer of warranty is an essential part of the Licence and a condition for the grant of any rights to the Work. + +8.Disclaimer of Liability +Except in the cases of wilful misconduct or damages directly caused to natural persons, the Licensor will in no event be +liable for any direct or indirect, material or moral, damages of any kind, arising out of the Licence or of the use of the +Work, including without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, loss +of data or any commercial damage, even if the Licensor has been advised of the possibility of such damage. However, +the Licensor will be liable under statutory product liability laws as far such laws apply to the Work. + +9.Additional agreements +While distributing the Work, You may choose to conclude an additional agreement, defining obligations or services +consistent with this Licence. However, if accepting obligations, You may act only on your own behalf and on your sole +responsibility, not on behalf of the original Licensor or any other Contributor, and only if You agree to indemnify, +defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against such Contributor by +the fact You have accepted any warranty or additional liability. + +10.Acceptance of the Licence +The provisions of this Licence can be accepted by clicking on an icon ‘I agree’ placed under the bottom of a window +displaying the text of this Licence or by affirming consent in any other similar way, in accordance with the rules of +applicable law. Clicking on that icon indicates your clear and irrevocable acceptance of this Licence and all of its terms +and conditions. +Similarly, you irrevocably accept this Licence and all of its terms and conditions by exercising any rights granted to You +by Article 2 of this Licence, such as the use of the Work, the creation by You of a Derivative Work or the Distribution +or Communication by You of the Work or copies thereof. + +11.Information to the public +In case of any Distribution or Communication of the Work by means of electronic communication by You (for example, +by offering to download the Work from a remote location) the distribution channel or media (for example, a website) +must at least provide to the public the information requested by the applicable law regarding the Licensor, the Licence +and the way it may be accessible, concluded, stored and reproduced by the Licensee. + +12.Termination of the Licence +The Licence and the rights granted hereunder will terminate automatically upon any breach by the Licensee of the terms +of the Licence. +Such a termination will not terminate the licences of any person who has received the Work from the Licensee under +the Licence, provided such persons remain in full compliance with the Licence. + +13.Miscellaneous +Without prejudice of Article 9 above, the Licence represents the complete agreement between the Parties as to the +Work. +If any provision of the Licence is invalid or unenforceable under applicable law, this will not affect the validity or +enforceability of the Licence as a whole. Such provision will be construed or reformed so as necessary to make it valid +and enforceable. +The European Commission may publish other linguistic versions or new versions of this Licence or updated versions of +the Appendix, so far this is required and reasonable, without reducing the scope of the rights granted by the Licence. +New versions of the Licence will be published with a unique version number. +All linguistic versions of this Licence, approved by the European Commission, have identical value. Parties can take +advantage of the linguistic version of their choice. + +14.Jurisdiction +Without prejudice to specific agreement between parties, +— any litigation resulting from the interpretation of this License, arising between the European Union institutions, +bodies, offices or agencies, as a Licensor, and any Licensee, will be subject to the jurisdiction of the Court of Justice +of the European Union, as laid down in article 272 of the Treaty on the Functioning of the European Union, +— any litigation arising between other parties and resulting from the interpretation of this License, will be subject to +the exclusive jurisdiction of the competent court where the Licensor resides or conducts its primary business. + +15.Applicable Law +Without prejudice to specific agreement between parties, +— this Licence shall be governed by the law of the European Union Member State where the Licensor has his seat, +resides or has his registered office, +— this licence shall be governed by Belgian law if the Licensor has no seat, residence or registered office inside +a European Union Member State. + + + Appendix + +‘Compatible Licences’ according to Article 5 EUPL are: +— GNU General Public License (GPL) v. 2, v. 3 +— GNU Affero General Public License (AGPL) v. 3 +— Open Software License (OSL) v. 2.1, v. 3.0 +— Eclipse Public License (EPL) v. 1.0 +— CeCILL v. 2.0, v. 2.1 +— Mozilla Public Licence (MPL) v. 2 +— GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3 +— Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for works other than software +— European Union Public Licence (EUPL) v. 1.1, v. 1.2 +— Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong Reciprocity (LiLiQ-R+). + +The European Commission may update this Appendix to later versions of the above licences without producing +a new version of the EUPL, as long as they provide the rights granted in Article 2 of this Licence and protect the +covered Source Code from exclusive appropriation. +All other changes or additions to this Appendix require the production of a new EUPL version. diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..2071b23b --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) + +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/README.md b/README.md index b9474f2f..029b6260 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +
# eza diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 00000000..e62276f2 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,60 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# +# SPDX-License-Identifier: EUPL-1.2 + +version = 1 +SPDX-PackageName = "eza" +SPDX-PackageSupplier = "Christina Sørensen " + +[[annotations]] +path = "flake.lock" +precedence = "aggregate" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = "Cargo.lock" +precedence = "aggregate" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = ".envrc" +precedence = "aggregate" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = "tests/**" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = "completions/**" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = "man/**" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = "deb.asc" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = "devtools/**" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = "docs/**" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" + +[[annotations]] +path = ".github/**.md" +SPDX-FileCopyrightText = "2024 Christina Sørensen" +SPDX-License-Identifier = "EUPL-1.2" diff --git a/SECURITY.md b/SECURITY.md index 05357978..c968bccd 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,3 +1,9 @@ + # Security Policy ## Supported Versions diff --git a/benches/my_benchmark.rs b/benches/my_benchmark.rs index bd019dfe..e8cbbc0d 100644 --- a/benches/my_benchmark.rs +++ b/benches/my_benchmark.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use criterion::{black_box, criterion_group, criterion_main, Criterion}; pub fn criterion_benchmark(c: &mut Criterion) { diff --git a/build.rs b/build.rs index 614a99ff..201d495f 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT /// The version string isn’t the simplest: we want to show the version, /// current Git hash, and compilation date when building *debug* versions, but /// just the version for *release* versions so the builds are reproducible. diff --git a/deny.toml b/deny.toml index a8f4c454..615b783c 100644 --- a/deny.toml +++ b/deny.toml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 [graph] # This template contains all of the possible sections and their default values diff --git a/flake.nix b/flake.nix index a3cef164..81ba1ef9 100644 --- a/flake.nix +++ b/flake.nix @@ -1,3 +1,8 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 +# +# SPDX-FileCopyrightText: 2014-2024 Christina Sørensen, eza contributors +# SPDX-License-Identifier: MIT { description = "eza: a modern, maintained replacement for ls"; @@ -259,6 +264,7 @@ pandoc convco zip + reuse # For releases b3sum @@ -296,6 +302,12 @@ hooks = treefmtFormatters // { nixfmt-rfc-style.enable = true; convco.enable = true; # not in treefmt + reuse = { + enable = true; + name = "reuse"; + entry = with pkgs; "${reuse}/bin/reuse lint"; + pass_filenames = false; + }; }; }; formatting = treefmtEval.config.build.check self; diff --git a/justfile b/justfile index 14a27b7f..d544a2f9 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 all: build test all-release: build-release test-release diff --git a/powertest.yaml b/powertest.yaml index ac2d1851..b69adb30 100644 --- a/powertest.yaml +++ b/powertest.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 dump_dir: tests/ptests depth: 1 binary: eza diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 3a9e7dc2..947d6fde 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2024 Christina Sørensen +# SPDX-License-Identifier: EUPL-1.2 name: eza base: core22 version: 'latest' diff --git a/src/fs/dir.rs b/src/fs/dir.rs index 8280f485..0ad514d6 100644 --- a/src/fs/dir.rs +++ b/src/fs/dir.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::fs::feature::git::GitCache; use crate::fs::fields::GitStatus; use std::fs; diff --git a/src/fs/dir_action.rs b/src/fs/dir_action.rs index 507c7979..3e27896e 100644 --- a/src/fs/dir_action.rs +++ b/src/fs/dir_action.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! What to do when encountering a directory? /// The action to take when trying to list a file that turns out to be a diff --git a/src/fs/feature/git.rs b/src/fs/feature/git.rs index b8d94bc7..d6dbf852 100644 --- a/src/fs/feature/git.rs +++ b/src/fs/feature/git.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Getting the Git status of files and directories. use std::env; diff --git a/src/fs/feature/mod.rs b/src/fs/feature/mod.rs index f2c5aede..7f63cdba 100644 --- a/src/fs/feature/mod.rs +++ b/src/fs/feature/mod.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT pub mod xattr; #[cfg(feature = "git")] diff --git a/src/fs/feature/xattr.rs b/src/fs/feature/xattr.rs index 2bff3239..f05bfaf7 100644 --- a/src/fs/feature/xattr.rs +++ b/src/fs/feature/xattr.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Extended attribute support for `NetBSD`, `Darwin`, and `Linux` systems. #![allow(trivial_casts)] // for ARM diff --git a/src/fs/fields.rs b/src/fs/fields.rs index a1be7dcd..961f9eff 100644 --- a/src/fs/fields.rs +++ b/src/fs/fields.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Wrapper types for the values returned from `File`s. //! //! The methods of `File` that return information about the entry on the diff --git a/src/fs/file.rs b/src/fs/file.rs index e7d7bfaa..58e3bba0 100644 --- a/src/fs/file.rs +++ b/src/fs/file.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Files, and methods and fields to access their metadata. #[cfg(unix)] diff --git a/src/fs/filter.rs b/src/fs/filter.rs index 52ba5e88..805a6776 100644 --- a/src/fs/filter.rs +++ b/src/fs/filter.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Filtering and sorting the list of files before displaying them. use std::cmp::Ordering; diff --git a/src/fs/mod.rs b/src/fs/mod.rs index 0f0d908b..49534095 100644 --- a/src/fs/mod.rs +++ b/src/fs/mod.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT mod dir; pub use self::dir::{Dir, DotFilter}; diff --git a/src/fs/mounts/linux.rs b/src/fs/mounts/linux.rs index be595fd0..39b86e89 100644 --- a/src/fs/mounts/linux.rs +++ b/src/fs/mounts/linux.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::fs::mounts::{Error, MountedFs}; use proc_mounts::MountList; diff --git a/src/fs/mounts/macos.rs b/src/fs/mounts/macos.rs index 05a44c67..6514c694 100644 --- a/src/fs/mounts/macos.rs +++ b/src/fs/mounts/macos.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::fs::mounts::{Error, MountedFs}; use libc::{__error, getfsstat, statfs, MNT_NOWAIT}; use std::ffi::{CStr, OsStr}; diff --git a/src/fs/mounts/mod.rs b/src/fs/mounts/mod.rs index d006b0fc..39d9740a 100644 --- a/src/fs/mounts/mod.rs +++ b/src/fs/mounts/mod.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::collections::HashMap; use std::path::PathBuf; use std::sync::OnceLock; diff --git a/src/fs/recursive_size.rs b/src/fs/recursive_size.rs index 7a4e17a9..fbf45498 100644 --- a/src/fs/recursive_size.rs +++ b/src/fs/recursive_size.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT /// Used to represent a the size of a recursive directory traversal. `None` /// should be used when the file does not represent a directory or the recursive /// size should not be calculated. diff --git a/src/info/filetype.rs b/src/info/filetype.rs index 527293f6..e71c2eb6 100644 --- a/src/info/filetype.rs +++ b/src/info/filetype.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Tests for various types of file (video, image, compressed, etc). //! //! Currently this is dependent on the file’s name and extension, because diff --git a/src/info/mod.rs b/src/info/mod.rs index 1fdd5359..656e84f0 100644 --- a/src/info/mod.rs +++ b/src/info/mod.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! The “info” module contains routines that aren’t about probing the //! filesystem nor displaying output to the user, but are internal “business //! logic” routines that are performed on a file’s already-read metadata. diff --git a/src/info/sources.rs b/src/info/sources.rs index 72e036a7..4e93a8db 100644 --- a/src/info/sources.rs +++ b/src/info/sources.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::path::PathBuf; use crate::fs::File; diff --git a/src/lib.rs b/src/lib.rs index 82382401..29675f1a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT #[allow(unused)] pub mod fs; #[allow(unused)] diff --git a/src/logger.rs b/src/logger.rs index 8359adb1..351890ef 100644 --- a/src/logger.rs +++ b/src/logger.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Debug error logging. use std::ffi::OsStr; diff --git a/src/main.rs b/src/main.rs index 0ebb2409..d58523a1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT #![warn(deprecated_in_future)] #![warn(future_incompatible)] #![warn(nonstandard_style)] diff --git a/src/options/config.rs b/src/options/config.rs index 87b09737..ff8ddb6a 100644 --- a/src/options/config.rs +++ b/src/options/config.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::theme::ThemeFileType as FileType; use crate::theme::*; use nu_ansi_term::{Color, Style}; diff --git a/src/options/dir_action.rs b/src/options/dir_action.rs index cd62277f..417d686b 100644 --- a/src/options/dir_action.rs +++ b/src/options/dir_action.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Parsing the options for `DirAction`. use crate::options::parser::MatchedFlags; diff --git a/src/options/error.rs b/src/options/error.rs index adc56651..66e22280 100644 --- a/src/options/error.rs +++ b/src/options/error.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::ffi::OsString; use std::fmt; use std::num::ParseIntError; diff --git a/src/options/file_name.rs b/src/options/file_name.rs index e3cdd69e..b6c9b9ef 100644 --- a/src/options/file_name.rs +++ b/src/options/file_name.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::options::parser::MatchedFlags; use crate::options::vars::{self, Vars}; use crate::options::{flags, NumberSource, OptionsError}; diff --git a/src/options/filter.rs b/src/options/filter.rs index fce5a926..16461031 100644 --- a/src/options/filter.rs +++ b/src/options/filter.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Parsing the options for `FileFilter`. use crate::fs::filter::{ diff --git a/src/options/flags.rs b/src/options/flags.rs index a707157f..7a833f97 100644 --- a/src/options/flags.rs +++ b/src/options/flags.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT #![cfg_attr(rustfmt, rustfmt_skip)] use crate::options::parser::{Arg, Args, TakesValue, Values}; diff --git a/src/options/help.rs b/src/options/help.rs index 0e456d07..6f282836 100644 --- a/src/options/help.rs +++ b/src/options/help.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::fmt; use crate::fs::feature::xattr; diff --git a/src/options/mod.rs b/src/options/mod.rs index dbbac960..703e8a4d 100644 --- a/src/options/mod.rs +++ b/src/options/mod.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Parsing command-line strings into exa options. //! //! This module imports exa’s configuration types, such as `View` (the details diff --git a/src/options/parser.rs b/src/options/parser.rs index 185895f0..8dbd7edd 100644 --- a/src/options/parser.rs +++ b/src/options/parser.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! A general parser for command-line options. //! //! exa uses its own hand-rolled parser for command-line options. It supports diff --git a/src/options/stdin.rs b/src/options/stdin.rs index d2cbb3d8..c94ab68d 100644 --- a/src/options/stdin.rs +++ b/src/options/stdin.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::options::parser::MatchedFlags; use crate::options::vars::EZA_STDIN_SEPARATOR; use crate::options::{flags, OptionsError, Vars}; diff --git a/src/options/theme.rs b/src/options/theme.rs index 4b4c8344..d8a61fcd 100644 --- a/src/options/theme.rs +++ b/src/options/theme.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::options::parser::MatchedFlags; use crate::options::{flags, vars, OptionsError, Vars}; use crate::output::color_scale::ColorScaleOptions; diff --git a/src/options/vars.rs b/src/options/vars.rs index 0f46631d..2e24ef06 100644 --- a/src/options/vars.rs +++ b/src/options/vars.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::ffi::OsString; // General variables diff --git a/src/options/version.rs b/src/options/version.rs index 9c7a7bcc..b641d793 100644 --- a/src/options/version.rs +++ b/src/options/version.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Printing the version string. //! //! The code that works out which string to print is done in `build.rs`. diff --git a/src/options/view.rs b/src/options/view.rs index 118155ef..5b8c01cf 100644 --- a/src/options/view.rs +++ b/src/options/view.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::ffi::OsString; use crate::fs::feature::xattr; diff --git a/src/output/cell.rs b/src/output/cell.rs index 0c711d92..5a05204d 100644 --- a/src/output/cell.rs +++ b/src/output/cell.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! The `TextCell` type for the details and lines views. use std::iter::Sum; diff --git a/src/output/color_scale.rs b/src/output/color_scale.rs index 33573e2e..76562a8d 100644 --- a/src/output/color_scale.rs +++ b/src/output/color_scale.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use log::trace; use nu_ansi_term::{Color as Colour, Style}; use palette::{FromColor, LinSrgb, Oklab, Srgb}; diff --git a/src/output/details.rs b/src/output/details.rs index 5a72b00a..20d4ab79 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! The **Details** output view displays each file as a row in a table. //! //! It’s used in the following situations: diff --git a/src/output/escape.rs b/src/output/escape.rs index beac4434..69f136c9 100644 --- a/src/output/escape.rs +++ b/src/output/escape.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use super::file_name::QuoteStyle; use nu_ansi_term::{AnsiString as ANSIString, Style}; diff --git a/src/output/file_name.rs b/src/output/file_name.rs index ba8947bc..ea4f5a00 100644 --- a/src/output/file_name.rs +++ b/src/output/file_name.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::fmt::Debug; use std::path::Path; diff --git a/src/output/grid.rs b/src/output/grid.rs index ad30a199..a52df4ac 100644 --- a/src/output/grid.rs +++ b/src/output/grid.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::io::{self, Write}; use term_grid::{Direction, Filling, Grid, GridOptions}; diff --git a/src/output/grid_details.rs b/src/output/grid_details.rs index 04083b4f..7806aef3 100644 --- a/src/output/grid_details.rs +++ b/src/output/grid_details.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! The grid-details view lists several details views side-by-side. use std::io::{self, Write}; diff --git a/src/output/icons.rs b/src/output/icons.rs index 9920d88f..5b7b2c70 100644 --- a/src/output/icons.rs +++ b/src/output/icons.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use phf::{phf_map, Map}; diff --git a/src/output/lines.rs b/src/output/lines.rs index bade1ed7..ee48d8a0 100644 --- a/src/output/lines.rs +++ b/src/output/lines.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::io::{self, Write}; use nu_ansi_term::AnsiStrings as ANSIStrings; diff --git a/src/output/mod.rs b/src/output/mod.rs index 6a7a47a7..acdef874 100644 --- a/src/output/mod.rs +++ b/src/output/mod.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT #[cfg(target_os = "windows")] pub use self::cell::{DisplayWidth, TextCell, TextCellContents}; pub use self::escape::escape; diff --git a/src/output/render/blocks.rs b/src/output/render/blocks.rs index e18dfe15..5a9c3681 100644 --- a/src/output/render/blocks.rs +++ b/src/output/render/blocks.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use locale::Numeric as NumericLocale; use nu_ansi_term::Style; use number_prefix::Prefix; diff --git a/src/output/render/filetype.rs b/src/output/render/filetype.rs index f70809d2..e72270d0 100644 --- a/src/output/render/filetype.rs +++ b/src/output/render/filetype.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::{AnsiString as ANSIString, Style}; use crate::fs::fields as f; diff --git a/src/output/render/flags.rs b/src/output/render/flags.rs index 31d1b386..d03278b2 100644 --- a/src/output/render/flags.rs +++ b/src/output/render/flags.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use crate::fs::fields as f; diff --git a/src/output/render/flags_bsd.rs b/src/output/render/flags_bsd.rs index 7f8e12e6..a29cf9c8 100644 --- a/src/output/render/flags_bsd.rs +++ b/src/output/render/flags_bsd.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use std::ffi::CStr; diff --git a/src/output/render/flags_windows.rs b/src/output/render/flags_windows.rs index 0784ac6a..b2cf9f3c 100644 --- a/src/output/render/flags_windows.rs +++ b/src/output/render/flags_windows.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::fs::fields as f; use crate::output::table::FlagsFormat; use crate::output::TextCell; diff --git a/src/output/render/git.rs b/src/output/render/git.rs index 045315dc..4356cbb2 100644 --- a/src/output/render/git.rs +++ b/src/output/render/git.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::{AnsiString as ANSIString, Style}; use crate::fs::fields as f; diff --git a/src/output/render/groups.rs b/src/output/render/groups.rs index 08b1993b..9ad8e1cc 100644 --- a/src/output/render/groups.rs +++ b/src/output/render/groups.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use uzers::{Groups, Users}; diff --git a/src/output/render/inode.rs b/src/output/render/inode.rs index 642c7ceb..20f2526b 100644 --- a/src/output/render/inode.rs +++ b/src/output/render/inode.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use crate::fs::fields as f; diff --git a/src/output/render/links.rs b/src/output/render/links.rs index 1556156d..d44db422 100644 --- a/src/output/render/links.rs +++ b/src/output/render/links.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT #[cfg(unix)] use locale::Numeric as NumericLocale; use nu_ansi_term::Style; diff --git a/src/output/render/mod.rs b/src/output/render/mod.rs index c941d713..e81d6d14 100644 --- a/src/output/render/mod.rs +++ b/src/output/render/mod.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT #[cfg(unix)] mod blocks; #[cfg(unix)] diff --git a/src/output/render/octal.rs b/src/output/render/octal.rs index a2f5845c..155b3f69 100644 --- a/src/output/render/octal.rs +++ b/src/output/render/octal.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use crate::fs::fields as f; diff --git a/src/output/render/permissions.rs b/src/output/render/permissions.rs index f4fae212..71edd574 100644 --- a/src/output/render/permissions.rs +++ b/src/output/render/permissions.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::iter; use nu_ansi_term::{AnsiString as ANSIString, Style}; diff --git a/src/output/render/securityctx.rs b/src/output/render/securityctx.rs index d19d1e17..38d33cba 100644 --- a/src/output/render/securityctx.rs +++ b/src/output/render/securityctx.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use crate::fs::fields as f; diff --git a/src/output/render/size.rs b/src/output/render/size.rs index e4222f55..09a132ea 100644 --- a/src/output/render/size.rs +++ b/src/output/render/size.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use locale::Numeric as NumericLocale; use nu_ansi_term::Style; use number_prefix::Prefix; diff --git a/src/output/render/times.rs b/src/output/render/times.rs index 22bdbef6..88b7c1ef 100644 --- a/src/output/render/times.rs +++ b/src/output/render/times.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::output::cell::TextCell; use crate::output::time::TimeFormat; diff --git a/src/output/render/users.rs b/src/output/render/users.rs index 868be9ea..6d9d6454 100644 --- a/src/output/render/users.rs +++ b/src/output/render/users.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use uzers::Users; diff --git a/src/output/table.rs b/src/output/table.rs index d951fda3..92303924 100644 --- a/src/output/table.rs +++ b/src/output/table.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::cmp::max; use std::ops::Deref; #[cfg(unix)] diff --git a/src/output/time.rs b/src/output/time.rs index 484504d4..d1bc6ea5 100644 --- a/src/output/time.rs +++ b/src/output/time.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Timestamp formatting. use chrono::prelude::*; diff --git a/src/output/tree.rs b/src/output/tree.rs index 6f91f53c..d3d07d3c 100644 --- a/src/output/tree.rs +++ b/src/output/tree.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT //! Tree structures, such as `├──` or `└──`, used in a tree view. //! //! ## Constructing Tree Views diff --git a/src/theme/default_theme.rs b/src/theme/default_theme.rs index 560f93a5..6817fa4d 100644 --- a/src/theme/default_theme.rs +++ b/src/theme/default_theme.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Color::*; use nu_ansi_term::Style; use std::default::Default; diff --git a/src/theme/lsc.rs b/src/theme/lsc.rs index a173403c..5fdd574a 100644 --- a/src/theme/lsc.rs +++ b/src/theme/lsc.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use std::iter::Peekable; use std::ops::FnMut; diff --git a/src/theme/mod.rs b/src/theme/mod.rs index 7de9a931..e624d31d 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use nu_ansi_term::Style; use crate::fs::File; diff --git a/src/theme/ui_styles.rs b/src/theme/ui_styles.rs index 9511e6cd..c151260c 100644 --- a/src/theme/ui_styles.rs +++ b/src/theme/ui_styles.rs @@ -1,3 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Christina Sørensen +// SPDX-License-Identifier: EUPL-1.2 +// +// SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors +// SPDX-FileCopyrightText: 2014 Benjamin Sago +// SPDX-License-Identifier: MIT use crate::theme::lsc::Pair; use nu_ansi_term::{Color::*, Style}; use serde::{Deserialize, Serialize};