Skip to content

Instantly share code, notes, and snippets.

@cameronbraid
Created January 12, 2017 04:10
Show Gist options
  • Select an option

  • Save cameronbraid/ba4ca0cefadb17d5448c1dfbe2f01af6 to your computer and use it in GitHub Desktop.

Select an option

Save cameronbraid/ba4ca0cefadb17d5448c1dfbe2f01af6 to your computer and use it in GitHub Desktop.
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