Alan Pevec
2008-Jul-03 15:40 UTC
[Ovirt-devel] [PATCH] use last committish on the current branch for pre-release tag
thanks to Jim for another great git tip! Signed-off-by: Alan Pevec <apevec at redhat.com> --- common/release.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/release.mk b/common/release.mk index f1fb5f7..7d45ecb 100644 --- a/common/release.mk +++ b/common/release.mk @@ -11,7 +11,7 @@ NEWVERSION = $$(awk 'BEGIN { printf "%.2f", $(VERSION) + .01 }') NEWRELEASE = $$(($(RELEASE) + 1)) X = $$(awk '{ split($$2,r,"."); \ printf("%d.%d\n", r[1], r[2]+1) }' version) -git_head = $$(git show-ref --hash=7 HEAD) +git_head = $$(git log -1 --pretty=format:%h) GITRELEASE = $(X).$$(date --utc +%Y%m%d%H%M)git$(git_head) DIST = $$(rpm --eval '%{dist}') -- 1.5.4.1
Jim Meyering
2008-Jul-05 17:23 UTC
[Ovirt-devel] [PATCH] use last committish on the current branch for pre-release tag
Alan Pevec <apevec at redhat.com> wrote:> diff --git a/common/release.mk b/common/release.mk > index f1fb5f7..7d45ecb 100644 > --- a/common/release.mk > +++ b/common/release.mk > @@ -11,7 +11,7 @@ NEWVERSION = $$(awk 'BEGIN { printf "%.2f", $(VERSION) + .01 }') > NEWRELEASE = $$(($(RELEASE) + 1)) > X = $$(awk '{ split($$2,r,"."); \ > printf("%d.%d\n", r[1], r[2]+1) }' version) > -git_head = $$(git show-ref --hash=7 HEAD) > +git_head = $$(git log -1 --pretty=format:%h)ACK ;-)