aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-28 18:47:02 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2024-09-30 11:17:36 +0200
commit10c3cded929bcf0a310689ef8973166a524af8a7 (patch)
treed82b9a1d4535f10006ad71a5cc04046a3887c4bb /Documentation
parentkde-plasma/kde-cli-tools: Add missing dev-qt/qtbase[X] USEdep (diff)
downloadkde-10c3cded929bcf0a310689ef8973166a524af8a7.tar.gz
kde-10c3cded929bcf0a310689ef8973166a524af8a7.tar.bz2
kde-10c3cded929bcf0a310689ef8973166a524af8a7.zip
Documentation: regenerate-files: use arrays
This simplifies some upcoming work. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'Documentation')
-rwxr-xr-xDocumentation/maintainers/regenerate-files26
1 files 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}"