reworked build and update scripts

This commit is contained in:
Dalibor Pospisil 2018-02-24 22:30:38 +01:00
parent 50ba0fe117
commit 2fbadd5ef5
3 changed files with 23 additions and 4 deletions

View File

@ -1,5 +1,11 @@
#!/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 merger master && \
git push && \
fedpkg build --nowait && \
git checkout f28 && \
exec ./build-chain
git checkout $next_branch && \
[[ "$next_branch" != "$first_branch" ]] && exec ./build-chain

6
supported-releases Normal file
View File

@ -0,0 +1,6 @@
master
f28
f27
f26
epel7
el6

View File

@ -1,4 +1,11 @@
#!/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 f27 && \
exec ./update-chain
git checkout $next_branch && \
[[ "$next_branch" != "first_branch" ]] && exec ./update-chain