mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-01-29 21:08:43 +01:00
The change was performed as follows: - it was checked that the COPYING.MIT license was present with the initial commit and such each contributor was awere of the license - mail was around to all previous contributors to check this assumption (mail was not replied by Hannah and Sebastian); every reply was a confirmation of the assumed MIT licensing - all copyright information were recovered from the respective Git commits - reuse lint was to used to check the REUSE conformance
47 lines
889 B
Bash
Executable File
47 lines
889 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# add/remove KF5 release recipes
|
|
#
|
|
# SPDX-FileCopyrightText: 2017-2018 Volker Krause <vkrause@kde.org>
|
|
# SPDX-FileCopyrightText: 2020 Andreas Cord-Landwehr <cordlandwehr@kde.org>
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
function usage()
|
|
{
|
|
echo "$1 [add|remove] <version>"
|
|
exit 1
|
|
}
|
|
|
|
command=$1
|
|
if [ -z "$command" ]; then usage $0; fi
|
|
|
|
version=$2
|
|
if [ -z "$version" ]; then usage $0; fi
|
|
|
|
base=`dirname $0`/../recipes-kf5
|
|
|
|
case $command in
|
|
add)
|
|
for recipe in `find $base -name "*.inc" | grep -v /staging/`; do
|
|
name=`echo $recipe | sed -e "s,\.inc,_${version}.bb,"`
|
|
cat <<EOM > $name
|
|
# SPDX-FileCopyrightText: none
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
require \${PN}.inc
|
|
SRCREV = "v\${PV}"
|
|
EOM
|
|
git add $name
|
|
done
|
|
;;
|
|
remove)
|
|
for recipe in `find $base -name "*_$version.bb"`; do
|
|
git rm -f $recipe
|
|
done
|
|
;;
|
|
*)
|
|
usage $0
|
|
;;
|
|
esac
|