You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
517 B
32 lines
517 B
1 month ago
|
#! /bin/sh
|
||
|
|
||
|
# Prepare master branch, review the list of branches below and then execute this
|
||
|
# script.
|
||
|
|
||
|
main=main
|
||
|
branches="$main epel7 epel8 epel9 f37 f38 f39"
|
||
|
|
||
|
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
|