From 926fae811b0d28ed49cb0c0c944bafecbfe6a7d6 Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Tue, 29 Dec 2020 11:04:35 +0100 Subject: [PATCH] Generate SPDX header for non-copyright files --- scripts/plasma-release.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/plasma-release.sh b/scripts/plasma-release.sh index 9bae8eb..dab1707 100755 --- a/scripts/plasma-release.sh +++ b/scripts/plasma-release.sh @@ -21,7 +21,13 @@ case $command in add) for recipe in `find $base -name "*.inc" | grep -v /staging/`; do name=`echo $recipe | sed -e "s,\.inc,_${version}.bb,"` - echo -e 'require ${PN}.inc\nSRCREV = "v${PV}"' > $name +cat < $name +# SPDX-FileCopyrightText: none +# SPDX-License-Identifier: CC0-1.0 + +require \${PN}.inc +SRCREV = "v\${PV}" +EOM git add $name done ;;