12 lines
399 B
Plaintext
12 lines
399 B
Plaintext
|
#!/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
|