commit: 10c3cded929bcf0a310689ef8973166a524af8a7 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Sep 28 17:47:02 2024 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Mon Sep 30 09:17:36 2024 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=10c3cded
Documentation: regenerate-files: use arrays This simplifies some upcoming work. Signed-off-by: Sam James <sam <AT> gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> Documentation/maintainers/regenerate-files | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Documentation/maintainers/regenerate-files b/Documentation/maintainers/regenerate-files index f34b6e2048..84f5fbc376 100755 --- a/Documentation/maintainers/regenerate-files +++ b/Documentation/maintainers/regenerate-files @@ -9,19 +9,19 @@ cd "$(dirname $0)" SCRIPT=$(basename $0) HEADER="# Autogenerated by ${SCRIPT}, DO NOT EDIT." -KF6_RELEASES="6.5 6.6" +KF6_RELEASES=( 6.5 6.6 ) KF6_RELEASE=${KF6_RELEASE:-6.5} -PLASMA_RELEASES="6.1 6.2" +PLASMA_RELEASES=( 6.1 6.2 ) PLASMA_RELEASE=${PLASMA_RELEASE:-6.1} -GEAR_RELEASES="24.08" +GEAR_RELEASES=( 24.08 ) GEAR_RELEASE=${GEAR_RELEASE:-24.05} # regenerate keywords pushd ../package.accept_keywords/ > /dev/null if [[ -n ${KF6_RELEASES} ]]; then - for release in $KF6_RELEASES; do + for release in "${KF6_RELEASES[@]}"; do if [[ -d ".kde-frameworks-${release}" ]]; then echo -e "${HEADER}" > "kde-frameworks-${release}.keywords" cat ".kde-frameworks-${release}/"* | grep -P -v '^>=kde-frameworks/(?!kf-env)' | \ @@ -30,14 +30,14 @@ if [[ -n ${KF6_RELEASES} ]]; then done fi -for release in $PLASMA_RELEASES; do +for release in "${PLASMA_RELEASES[@]}"; do echo -e "${HEADER}" > "kde-plasma-${release}.keywords" if [[ -d ".kde-plasma-${release}" ]]; then cat ".kde-plasma-${release}/"* | sed '/^~.*[.-]9999$/s/$/ **/' >> "kde-plasma-${release}.keywords" fi done -for release in $GEAR_RELEASES; do +for release in "${GEAR_RELEASES[@]}"; do echo -e "${HEADER}" > "kde-gear-${release}.keywords" if [[ -d ".kde-gear-${release}" ]]; then cat ".kde-gear-${release}/"* | \ @@ -46,7 +46,7 @@ for release in $GEAR_RELEASES; do done # ... and for completely unkeyworded packages, add "**" -for release in $GEAR_RELEASES; do +for release in "${GEAR_RELEASES[@]}"; do if [[ -d ".kde-gear-${release}" ]]; then rm -rf ".kde-gear-${release}.49.9999" mkdir -p ".kde-gear-${release}.49.9999" @@ -97,7 +97,7 @@ popd > /dev/null # regenerate unmask entries (base for package mask) pushd ../package.unmask/ > /dev/null -for release in $KF6_RELEASES live; do +for release in "${KF6_RELEASES[@]}" live; do if [[ -d ".kde-frameworks-${release}" ]]; then echo -e "${HEADER}" > "kde-frameworks-${release}" cat ".kde-frameworks-${release}/"* | \ @@ -106,14 +106,14 @@ for release in $KF6_RELEASES live; do fi done -for release in $PLASMA_RELEASES live; do +for release in "${PLASMA_RELEASES[@]}" live; do echo -e "${HEADER}" > "kde-plasma-${release}" if [[ -d ".kde-plasma-${release}" ]]; then cat ".kde-plasma-${release}/"* >> "kde-plasma-${release}" fi done -for release in $GEAR_RELEASES live; do +for release in "${GEAR_RELEASES[@]}" live; do echo -e "${HEADER}" > "kde-gear-${release}" if [[ -d ".kde-gear-${release}" ]]; then cat ".kde-gear-${release}/"* >> "kde-gear-${release}" @@ -124,7 +124,7 @@ popd > /dev/null # regenerate mask entries (base for package mask) pushd ../package.mask/ > /dev/null -for release in $KF6_RELEASES live; do +for release in "${KF6_RELEASES[@]}" live; do if [[ -d "../package.unmask/.kde-frameworks-${release}" ]]; then echo -e "${HEADER}" > "kde-frameworks-${release}" cat "../package.unmask/.kde-frameworks-${release}/"* | \ @@ -134,7 +134,7 @@ for release in $KF6_RELEASES live; do fi done -for release in $PLASMA_RELEASES live; do +for release in "${PLASMA_RELEASES[@]}" live; do echo -e "${HEADER}" > "kde-plasma-${release}" if [[ -d "../package.unmask/.kde-plasma-${release}" ]]; then cat "../package.unmask/.kde-plasma-${release}/"* >> "kde-plasma-${release}" @@ -143,7 +143,7 @@ for release in $PLASMA_RELEASES live; do fi done -for release in $GEAR_RELEASES live; do +for release in "${GEAR_RELEASES[@]}" live; do echo -e "${HEADER}" > "kde-gear-${release}" if [[ -d "../package.unmask/.kde-gear-${release}" ]]; then cat "../package.unmask/.kde-gear-${release}/"* >> "kde-gear-${release}"