reuse-convert-dep5 - Man Page

Convert .reuse/dep5 to REUSE.toml

Synopsis

reuse convert-dep5 [options]

Description

reuse-convert-dep5 converts the .reuse/dep5 file into a functionally equivalent REUSE.toml file in the root of the project. The .reuse/dep5 file is subsequently deleted.

Options

-h, ā€‰--help

Display help and exit.

Examples

Given the following .reuse/dep5 file:

Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Some project
Upstream-Contact: Jane Doe
Source: https://example.com/
Disclaimer: Some rights reserved

Files: hello*.txt
Copyright: 2018 Jane Doe
License: MIT
Comment: hello world

Files: foo bar
Copyright: 2018 Jane Doe
    2019 John Doe
License: MIT

The following REUSE.toml is generated:

version = 1
SPDX-PackageName = "Some project"
SPDX-PackageSupplier = "Jane Doe"
SPDX-PackageDownloadLocation = "https://example.com/"
SPDX-PackageComment = "Some rights reserved"

[[annotations]]
path = "hello**.txt"
precedence = "aggregate"
SPDX-FileCopyrightText = "2018 Jane Doe"
SPDX-License-Identifier = "MIT"
SPDX-FileComment = "hello world"

[[annotations]]
path = ["foo", "bar"]
precedence = "aggregate"
SPDX-FileCopyrightText = ["2018 Jane Doe", "2019 John Doe"]
SPDX-License-Identifier = "MIT"

Author

Free Software Foundation Europe

Referenced By

reuse(1).

Jul 19, 2024 3.0.2 reuse