diff --git a/scripts/plasma-mobile-release.sh b/scripts/plasma-mobile-release.sh index 85c9bcc..68e6511 100755 --- a/scripts/plasma-mobile-release.sh +++ b/scripts/plasma-mobile-release.sh @@ -9,7 +9,7 @@ function usage() { - echo "$1 [add|add-tarball|remove|update []" + echo "$1 [add|add-tarball|remove|update|add-gitmaster] " exit 1 } @@ -34,6 +34,27 @@ require \${PN}.inc SRC_URI = "git://anongit.kde.org/${app};nobranch=1;protocol=https" SRCREV = "v\${PV}" S = "\${WORKDIR}/git" +EOM + git add $name + done + ;; +add-gitmaster) + # porting aid for KF6/Qt6 staging + # search for all non-staging inc files without underlines + for recipe in $(find $base -regex ".*/[0-9a-zA-Z\-]+\.inc" | grep -v /staging/); do + name=$(echo $recipe | sed -e "s,\.inc,_${version}.bb,") + package=$(echo $recipe | grep -P -o '[0-9a-zA-Z\-]+(?=\.inc)') + invent_project="plasma-mobile" + echo "update ${package}" + SRCREV=$(git ls-remote https://commits.kde.org/${package}.git/ HEAD | awk '{ print $1}') +cat < $name +# SPDX-FileCopyrightText: none +# SPDX-License-Identifier: CC0-1.0 + +require \${PN}.inc +SRCREV = "${SRCREV}" +SRC_URI = "git://commits.kde.org/\${BPN};nobranch=1;protocol=https" +S = "\${WORKDIR}/git" EOM git add $name done