Skip to content

Commit

Permalink
releng
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Feb 6, 2024
1 parent a447d89 commit f81f986
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion releng/rawhide-branching.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
## arguments).

set -e
cd "$(dirname "$(readlink -f "$0")")/../mock-core-configs/etc/mock"
topdir=$(git rev-parse --show-toplevel)

cd "$topdir/mock-core-configs/etc/mock"

for config in fedora-??-x86_64.cfg; do
prev_version=$version
Expand Down Expand Up @@ -37,6 +39,13 @@ for arch in "${architectures[@]}"; do
git add "fedora-$next_version-$arch.cfg" "fedora-$version-$arch.cfg"
done

towncrier_file=$topdir/releng/release-notes-next/fedora-$version-branching.feature
cat > "$towncrier_file" <<EOF
Configuration files for Fedora $version have been branched from Rawhide,
according to the [Fedora $version Schedule](https://fedorapeople.org/groups/schedule/f-$version/f-$version-all-tasks.html).
EOF
git add "$towncrier_file"

# Use updated relasever in rawhide template, because we need to reference
# updated GPG keys (of $next_version and $versiono).

Expand All @@ -45,6 +54,10 @@ for file in templates/fedora-rawhide.tpl templates/fedora-eln.tpl; do
git add "$file"
done


config_spec=$topdir/mock-core-configs/mock-core-configs.spec
sed -i "s/\(Version:[[:space:]]\+\).*/\1$version.0.post1/" "$config_spec"

echo "WARNING: Make sure Fedora Copr maintainers are informed that"
echo "WARNING: they should run 'copr-frontend branch-fedora $version'".
echo "WARNING: That has to be done right on time when branching is done."
Expand Down

0 comments on commit f81f986

Please sign in to comment.