argparse-manpage/build-and-update-all-branches
Pavel Raiskup c944c1536c F34 is EOL
2022-10-31 09:49:29 +01:00

32 lines
517 B
Bash
Executable File

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