Created
January 12, 2017 04:10
-
-
Save cameronbraid/ba4ca0cefadb17d5448c1dfbe2f01af6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone https://github.com/openshift/origin.git | |
| cd origin | |
| git checkout release-1.4 | |
| set V 1.4.0.rc1 | |
| # update the release, incrementing based form the last releaseed RPMS | |
| set R 1 | |
| sed -i origin.spec -e "s/^Version: .*/Version: $V/g" -e "s/^Release: .*/Release: $R\%{?dist}/g" | |
| git add origin.spec | |
| git commit -m 'update version for build in origin.spec to $V' | |
| set HASH (git rev-parse HEAD) | |
| echo Setting hash to $HASH | |
| # update the commit hash in the spec file and trigger the build | |
| sed -i origin.spec -e "s/^\%global commit.*/\%global commit: $HASH/g" | |
| # tigger the rpm builder | |
| make build-rpms | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment