From 8f5bcd615be7ca14d2375cd9099ad230508c9392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 1 Oct 2021 13:04:32 +0200 Subject: [PATCH] licensing: add forgotten spdx headers Those are all "our" files, but we forgot to add the headers, most likely because of non-standard file extensions. --- man/custom-entities.ent.in | 1 + mkosi.build | 1 + shell-completion/zsh/_systemd-path | 1 + src/basic/missing_mount.h | 1 + src/basic/missing_securebits.h | 1 + src/login/systemd-user.in | 1 + src/rpm/systemd-update-helper.in | 1 + test/create-busybox-container | 1 + test/mkosi.build.networkd-test | 1 + test/mkosi.default.networkd-test | 2 ++ test/mkosi.nspawn.networkd-test | 2 ++ test/run-integration-tests.sh | 1 + test/run-unit-tests.py | 1 + test/test-efi-create-disk.sh | 1 + test/test-functions | 4 +++- test/test-network-generator-conversion.sh | 1 + test/test-sysusers.sh.in | 1 + test/udev-test.pl | 1 + 18 files changed, 22 insertions(+), 1 deletion(-) diff --git a/man/custom-entities.ent.in b/man/custom-entities.ent.in index 76a3dace33e..5c01ccb7016 100644 --- a/man/custom-entities.ent.in +++ b/man/custom-entities.ent.in @@ -1,4 +1,5 @@ + diff --git a/mkosi.build b/mkosi.build index 1ed6815bf9d..bb04d5edaad 100755 --- a/mkosi.build +++ b/mkosi.build @@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later set -e # This is a build script for OS image generation using mkosi (https://github.com/systemd/mkosi). diff --git a/shell-completion/zsh/_systemd-path b/shell-completion/zsh/_systemd-path index dd2e720fd9f..d1fb24b2fd8 100644 --- a/shell-completion/zsh/_systemd-path +++ b/shell-completion/zsh/_systemd-path @@ -1,4 +1,5 @@ #compdef systemd-path +# SPDX-License-Identifier: LGPL-2.1-or-later typeset -A sdpath=( ${$(systemd-path)/:/} ) _arguments -S \ diff --git a/src/basic/missing_mount.h b/src/basic/missing_mount.h index c60acf041aa..69b0bcfcbfe 100644 --- a/src/basic/missing_mount.h +++ b/src/basic/missing_mount.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include diff --git a/src/basic/missing_securebits.h b/src/basic/missing_securebits.h index 40d6ec9d718..03fad6f503a 100644 --- a/src/basic/missing_securebits.h +++ b/src/basic/missing_securebits.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include diff --git a/src/login/systemd-user.in b/src/login/systemd-user.in index 19e649bbe95..39bcbd71fe3 100644 --- a/src/login/systemd-user.in +++ b/src/login/systemd-user.in @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later # This file is part of systemd. # # Used by systemd --user instances. diff --git a/src/rpm/systemd-update-helper.in b/src/rpm/systemd-update-helper.in index 0c6675a9db0..fa35e7ba903 100755 --- a/src/rpm/systemd-update-helper.in +++ b/src/rpm/systemd-update-helper.in @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -eu set -o pipefail diff --git a/test/create-busybox-container b/test/create-busybox-container index b6f34b47ecf..05ab2b11c9f 100755 --- a/test/create-busybox-container +++ b/test/create-busybox-container @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -e set -u diff --git a/test/mkosi.build.networkd-test b/test/mkosi.build.networkd-test index cdaa4302f71..ea97d012fa4 100755 --- a/test/mkosi.build.networkd-test +++ b/test/mkosi.build.networkd-test @@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later set -ex # First, source in the main build script diff --git a/test/mkosi.default.networkd-test b/test/mkosi.default.networkd-test index fc9a5d3134b..6423417b81c 100644 --- a/test/mkosi.default.networkd-test +++ b/test/mkosi.default.networkd-test @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# # Puts together an nspawn container and runs networkd-test.py in it, inside a # network namespace and everything. Run this with # diff --git a/test/mkosi.nspawn.networkd-test b/test/mkosi.nspawn.networkd-test index a23aed6eda9..f624f241f3d 100644 --- a/test/mkosi.nspawn.networkd-test +++ b/test/mkosi.nspawn.networkd-test @@ -1,2 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + [Network] Private=yes diff --git a/test/run-integration-tests.sh b/test/run-integration-tests.sh index 2b48417d583..89058f4aca6 100755 --- a/test/run-integration-tests.sh +++ b/test/run-integration-tests.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -e if [ "$NO_BUILD" ]; then diff --git a/test/run-unit-tests.py b/test/run-unit-tests.py index f4d290aa912..314182d980a 100755 --- a/test/run-unit-tests.py +++ b/test/run-unit-tests.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-or-later import argparse import glob diff --git a/test/test-efi-create-disk.sh b/test/test-efi-create-disk.sh index e0949ba7295..46062e46e70 100755 --- a/test/test-efi-create-disk.sh +++ b/test/test-efi-create-disk.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -eo pipefail out="${1:?}" diff --git a/test/test-functions b/test/test-functions index a9a01a80d0d..31eb86f2bd3 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1,6 +1,8 @@ #!/usr/bin/env bash -# shellcheck disable=SC2030,SC2031 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# shellcheck disable=SC2030,SC2031 # ex: ts=8 sw=4 sts=4 et filetype=sh tw=180 # Note: the shellcheck line above disables warning for variables which were # modified in a subshell. In our case this behavior is expected, but diff --git a/test/test-network-generator-conversion.sh b/test/test-network-generator-conversion.sh index da7f985deec..3b6b1ec8ba8 100755 --- a/test/test-network-generator-conversion.sh +++ b/test/test-network-generator-conversion.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -ex if [[ -n "$1" ]]; then diff --git a/test/test-sysusers.sh.in b/test/test-sysusers.sh.in index 6e133cc841b..c9d9bd993b9 100755 --- a/test/test-sysusers.sh.in +++ b/test/test-sysusers.sh.in @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later set -e SYSUSERS="${1:-systemd-sysusers}" diff --git a/test/udev-test.pl b/test/udev-test.pl index 5c1b364848c..3aeac655780 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1,4 +1,5 @@ #!/usr/bin/env perl +# SPDX-License-Identifier: LGPL-2.1-or-later # udev test #