From 76df394598f5953a2cba14ca0f95c4d9e52e9469 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 29 Dec 2025 15:08:08 +0700 Subject: all: add missing SPDX license to all files Convert the old ".reuse/dep5" format to REUSE.toml format using "reuse convert-dep5" command. For generated files, add the ".license" file. Using "reuse annotate ..." it automatically add empty line after "SPDX-FileCopyrightText:", and it also put "SPDX-FileCopyrightText" above the "SPDX-License-Identifier". Now, this project is compliant with version 3.3 of the REUSE Specification. --- internal/cmd/gocheck/main.go | 3 ++- internal/cmd/haminer-dummy-backend/main.go | 1 + internal/cmd/memfs/main.go | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'internal/cmd') diff --git a/internal/cmd/gocheck/main.go b/internal/cmd/gocheck/main.go index 112c08a..956e790 100644 --- a/internal/cmd/gocheck/main.go +++ b/internal/cmd/gocheck/main.go @@ -1,5 +1,6 @@ -// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: 2024 M. Shulhan +// +// SPDX-License-Identifier: GPL-3.0-or-later // Program gocheck implement go static analysis using [Analyzer] that are not // included in the default go vet. diff --git a/internal/cmd/haminer-dummy-backend/main.go b/internal/cmd/haminer-dummy-backend/main.go index 5c6517e..1fd39ef 100644 --- a/internal/cmd/haminer-dummy-backend/main.go +++ b/internal/cmd/haminer-dummy-backend/main.go @@ -1,4 +1,5 @@ // SPDX-FileCopyrightText: 2024 Shulhan +// // SPDX-License-Identifier: GPL-3.0-or-later package main diff --git a/internal/cmd/memfs/main.go b/internal/cmd/memfs/main.go index 341fd98..fe69c78 100644 --- a/internal/cmd/memfs/main.go +++ b/internal/cmd/memfs/main.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 M. Shulhan +// +// SPDX-License-Identifier: GPL-3.0-or-later + package main import ( @@ -18,6 +22,11 @@ func embedDatabase() { PackageName: `haminer`, VarName: `memfsDatabase`, GoFileName: `memfs_database.go`, + CommentHeader: `// SPDX-FileCopyrightText: 2024 M. Shulhan +// +// SPDX-License-Identifier: GPL-3.0-or-later + +`, }, Root: `_database`, Includes: []string{ @@ -47,6 +56,11 @@ func embedWui() { PackageName: `haminer`, VarName: `memfsWUI`, GoFileName: `memfs_wui.go`, + CommentHeader: `// SPDX-FileCopyrightText: 2024 M. Shulhan +// +// SPDX-License-Identifier: GPL-3.0-or-later + +`, }, Root: `_wui`, Includes: []string{ -- cgit v1.3