#! /bin/sh
# Prepare rawhide branch, review the list of branches below and then execute this
# script.
branches='rawhide epel9 epel8 epel7 f34 f35'
exit_handler ()
{
git checkout rawhide
}
trap exit_handler EXIT
set -e
set -x
koji hello
tasks=
for branch in $branches; do
if test $branch != rawhide; then
git checkout "$branch"
git merge rawhide
fi
git push
tasks="${tasks}`fedpkg build --nowait | grep 'Created task' | cut -d: -f2`"
done
koji watch-task $tasks
git checkout rawhide
fedpkg update