reworked build and update scripts
This commit is contained in:
parent
50ba0fe117
commit
2fbadd5ef5
10
build-chain
10
build-chain
@ -1,5 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/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 && \
|
git push && \
|
||||||
fedpkg build --nowait && \
|
fedpkg build --nowait && \
|
||||||
git checkout f28 && \
|
git checkout $next_branch && \
|
||||||
exec ./build-chain
|
[[ "$next_branch" != "$first_branch" ]] && exec ./build-chain
|
||||||
|
6
supported-releases
Normal file
6
supported-releases
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
master
|
||||||
|
f28
|
||||||
|
f27
|
||||||
|
f26
|
||||||
|
epel7
|
||||||
|
el6
|
11
update-chain
11
update-chain
@ -1,4 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/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 && \
|
fedpkg update && \
|
||||||
git checkout f27 && \
|
git checkout $next_branch && \
|
||||||
exec ./update-chain
|
[[ "$next_branch" != "first_branch" ]] && exec ./update-chain
|
||||||
|
Loading…
Reference in New Issue
Block a user