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
|
||||
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
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user