argparse-manpage/build-and-update-all-branches
DistroBaker 2ea52e97ba Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/argparse-manpage.git#2b82a7d20b72f5c8c88a58235c6a876d821ce63c
2020-12-14 07:58:31 +00: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 f32 f33'
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