commit:     ea268851497708ad0132af9704b33347cd9e898f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 28 17:54:28 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Sep 30 09:22:10 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=ea268851

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 <AT> gentoo.org>
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 Documentation/maintainers/regenerate-files | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/Documentation/maintainers/regenerate-files 
b/Documentation/maintainers/regenerate-files
index 84f5fbc376..033d321b13 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

Reply via email to