2019-09-07 13:32:28 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# Prepare master branch, review the list of branches below and then execute this
|
|
|
|
# script.
|
|
|
|
|
2020-12-14 07:07:50 +00:00
|
|
|
branches='master epel7 epel8 f32 f33'
|
2019-09-07 13:32:28 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
for branch in $branches; do
|
|
|
|
test $branch != master || continue
|
|
|
|
git checkout $branch
|
|
|
|
fedpkg update
|
|
|
|
done
|