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