argparse-manpage/build-and-update-all-branches
Petr Šabata 5d64de8212 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/argparse-manpage#419615f221b0fdefa587b7cbd25d80c5dc77b9d2
2020-10-14 21:52:04 +02:00

37 lines
611 B
Bash
Executable File

#! /bin/sh
# Prepare master branch, review the list of branches below and then execute this
# script.
branches='master epel7 epel8 f30 f31'
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