Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
makefile: allow matching two digit major versions
Browse files Browse the repository at this point in the history
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 11487fc)
  • Loading branch information
phlogistonjohn committed Jul 21, 2020
1 parent 10176a2 commit 7a6610d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -6,8 +6,8 @@ APP_NAME := heketi
CLIENT_PKG_NAME := heketi-client
SHA := $(shell git rev-parse --short HEAD)
BRANCH := $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
VER := $(shell git describe --match='v[0-9].[0-9].[0-9]')
TAG := $(shell git tag --points-at HEAD 'v[0-9].[0-9].[0-9]' | tail -n1)
VER := $(shell git describe --match='v[0-9]*.[0-9].[0-9]')
TAG := $(shell git tag --points-at HEAD 'v[0-9]*.[0-9].[0-9]' | tail -n1)
GO:=go
GLIDE:=glide --debug
TESTBIN:=./test.sh
Expand Down
2 changes: 1 addition & 1 deletion client/cli/go/Makefile
Expand Up @@ -8,7 +8,7 @@ APP_NAME := heketi-cli
SHA := $(shell git rev-parse --short HEAD)
BRANCH := $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
VER := $(shell git describe)
TAG := $(shell git tag --points-at HEAD 'v[0-9].[0-9].[0-9]' | tail -n1)
TAG := $(shell git tag --points-at HEAD 'v[0-9]*.[0-9].[0-9]' | tail -n1)
GO:=go
GOARCH := $(shell $(GO) env GOARCH)
GOOS := $(shell $(GO) env GOOS)
Expand Down

0 comments on commit 7a6610d

Please sign in to comment.