2019-09-07 13:32:28 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# Prepare master branch, review the list of branches below and then execute this
|
|
|
|
# script.
|
|
|
|
|
2021-11-28 22:42:50 +00:00
|
|
|
main=rawhide
|
2022-01-12 01:52:28 +00:00
|
|
|
branches="$main epel7 epel8 epel9 f34 f35"
|
2019-09-07 13:32:28 +00:00
|
|
|
|
|
|
|
exit_handler ()
|
|
|
|
{
|
2021-11-28 22:42:50 +00:00
|
|
|
git checkout "$main"
|
2019-09-07 13:32:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
trap exit_handler EXIT
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
koji hello
|
|
|
|
|
|
|
|
tasks=
|
|
|
|
for branch in $branches; do
|
2021-11-28 22:42:50 +00:00
|
|
|
if test $branch != "$main"; then
|
2019-09-07 13:32:28 +00:00
|
|
|
git checkout "$branch"
|
2021-11-28 22:42:50 +00:00
|
|
|
git merge "$main"
|
2019-09-07 13:32:28 +00:00
|
|
|
fi
|
|
|
|
git push
|
|
|
|
tasks="${tasks}`fedpkg build --nowait | grep 'Created task' | cut -d: -f2`"
|
|
|
|
done
|
|
|
|
|
|
|
|
koji watch-task $tasks
|