summaryrefslogtreecommitdiff
path: root/Documentation/maintainers
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-28 18:54:28 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2024-09-30 11:22:10 +0200
commitea268851497708ad0132af9704b33347cd9e898f (patch)
tree5619a001b04b432b5ee435c1fd269f2bb0b5f64c /Documentation/maintainers
parent10c3cded929bcf0a310689ef8973166a524af8a7 (diff)
downloadkde-ea268851497708ad0132af9704b33347cd9e898f.tar.gz
kde-ea268851497708ad0132af9704b33347cd9e898f.tar.bz2
kde-ea268851497708ad0132af9704b33347cd9e898f.zip
Documentation: regenerate-files: create keywords files for Plasma stable branch
When Plasma branches, it's useful to have a keywords file for the live ebuilds corresponding to the branch. Just use the latest Plasma release as we don't care about live ebuilds for the older branch. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'Documentation/maintainers')
-rwxr-xr-xDocumentation/maintainers/regenerate-files18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/maintainers/regenerate-files b/Documentation/maintainers/regenerate-files
index 84f5fbc376a..033d321b135 100755
--- a/Documentation/maintainers/regenerate-files
+++ b/Documentation/maintainers/regenerate-files
@@ -37,6 +37,24 @@ for release in "${PLASMA_RELEASES[@]}"; do
fi
done
+# ... and for completely unkeyworded packages, add "**"
+# for plasma, we just want the latest release, as there won't be a branch
+# for the older version (nor ebuilds for live)
+for release in "${PLASMA_RELEASES[-1]}"; do
+ if [[ -d ".kde-plasma-${release}" ]]; then
+ rm -rf ".kde-plasma-${release}.49.9999"
+ mkdir -p ".kde-plasma-${release}.49.9999"
+ echo -e "${HEADER}" > "kde-plasma-${release}.49.9999.keywords"
+ for file in ".kde-plasma-${release}"/*; do
+ newfile=".kde-plasma-${release}.49.9999"/$(basename "${file}")
+ sed -e "/^<[a-z0-9-]*\/.*\.50$/{s/\.50/.49.9999/;s/^</~/};/^~.*[.-]9999$/s/$/ **/" \
+ -e "/^@/d" "${file}" > "${newfile}"
+ # echo "${newfile}"
+ done
+ cat ".kde-plasma-${release}.49.9999"/* >> "kde-plasma-${release}.49.9999.keywords"
+ fi
+done
+
for release in "${GEAR_RELEASES[@]}"; do
echo -e "${HEADER}" > "kde-gear-${release}.keywords"
if [[ -d ".kde-gear-${release}" ]]; then