[repo] Licence: CPAL-1.0 file headers instead of the MPL-2.0 notice

Each source file's three-line MPL-2.0 notice becomes an SPDX CPAL-1.0 header with the copyright
line; the Exhibit A notice itself is in LICENSE (CPAL 3.5). Shell scripts' SPDX ids follow.
Comments only: no code changes.
This commit is contained in:
2026-11-23 00:19:33 +01:00
parent cd140117c7
commit 5fcae1d152
34 changed files with 63 additions and 92 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
//! TEST ONLY: drives the Linux backend with real systemd for tests/linux (the container test).
//! It skips the signature check on purpose, so it is an example, never part of a release.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
//! Legatus's Linux (systemd) target (docs/01_legatus.md):
//!
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
#![allow(dead_code, clippy::unwrap_used, clippy::expect_used, clippy::panic)]
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
//! The Linux target (mandatory, tests first): the atomic symlink switch, the restart, the health
//! check, and auto rollback when the check fails. Real files and symlinks; systemd and the health
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// SPDX-License-Identifier: CPAL-1.0
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
//! Unpacking (tests first): a signed archive can still hold a mistake; nothing escapes the
//! release dir, links and special files are refused, and a refused archive leaves nothing behind.