Add a release helper script
This commit is contained in:
parent
bbc325efdb
commit
c7e9fc54d9
1 changed files with 39 additions and 0 deletions
39
build-and-update-all-branches
Executable file
39
build-and-update-all-branches
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Prepare main branch, review the list of branches below and then execute this
|
||||
# script.
|
||||
|
||||
branches='main epel7 epel8 epel9 f35 f36'
|
||||
|
||||
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
|
||||
skip_nvr_check=
|
||||
if test $branch = epel7; then
|
||||
skip_nvr_check=--skip-nvr-check
|
||||
fi
|
||||
tasks="${tasks}`fedpkg build $skip_nvr_check --nowait | grep 'Created task' | cut -d: -f2`"
|
||||
done
|
||||
|
||||
if test -n "$tasks"; then
|
||||
koji watch-task $tasks
|
||||
fi
|
||||
|
||||
git checkout main
|
||||
fedpkg update
|
||||
Loading…
Add table
Add a link
Reference in a new issue