beakerlib/update-chain
Petr Šabata 5154da4209 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/beakerlib#4d7d2d6fd07ed9218ccb4cd1fa9ccc64f23fd62c
2020-10-14 22:15:07 +02:00

12 lines
399 B
Bash
Executable File

#!/bin/bash
first_branch=$(head -n 1 supported-releases)
current_branch=$(git rev-parse --abbrev-ref HEAD)
next_branch=$(grep -A 1 $current_branch supported-releases | tail -n 1)
[[ "$next_branch" == "$current_branch" ]] && next_branch=$first_branch
git merge master && \
git push && \
fedpkg update && \
git checkout $next_branch && \
[[ "$next_branch" != "first_branch" ]] && exec ./update-chain