reuse-convert-dep5 − Convert .reuse/dep5 to REUSE.toml
reuse convert−dep5 [options]
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.
|
−−help |
Display help and exit. |
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"
Free Software Foundation Europe
2017, Free Software Foundation Europe. CC-BY-SA-4.0