Correctly support git tag usage

For plasma-mobile we have the situation that apps are not all organized
in a single invent group but scattered over several KDE modules. For
solving this, just use the legacy anongit:// URL rewrite support with
hopefully will stay for still quite a few years.
This commit is contained in:
Andreas Cord-Landwehr
2021-08-07 16:07:48 +02:00
parent 4371b92e21
commit 2a28c5d6b7
10 changed files with 2 additions and 18 deletions

View File

@@ -25,11 +25,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,"`
app=$(echo $recipe | grep -P -o '[0-9a-zA-Z\-]+(?=\.inc)')
cat <<EOM > $name
# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: CC0-1.0
require \${PN}.inc
SRC_URI = "git://anongit.kde.org/${app};nobranch=1;protocol=https"
SRCREV = "v\${PV}"
S = "\${WORKDIR}/git"
EOM