argparse-manpage/build-and-update-all-branches
2021-11-28 23:40:07 +01:00

31 lines
500 B
Bash
Executable File

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