Merge pull request #2770 from lucab/ups/git-describe-tags
ci: adjust git tags filtering
This commit is contained in:
commit
b8b07fc26b
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
mypath = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
mypath = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||||
topsrcdir = $(shell git rev-parse --show-toplevel)
|
topsrcdir = $(shell git rev-parse --show-toplevel)
|
||||||
GITREV = $(shell git describe --always --tags)
|
GITREV = $(shell git describe --always --tags --match 'v2???.*')
|
||||||
GITREV_FOR_PKG = $(shell echo "$(GITREV)" | sed -e 's,-,\.,g' -e 's,^v,,')
|
GITREV_FOR_PKG = $(shell echo "$(GITREV)" | sed -e 's,-,\.,g' -e 's,^v,,')
|
||||||
|
|
||||||
PACKAGE ?= $(shell basename $(topsrcdir))
|
PACKAGE ?= $(shell basename $(topsrcdir))
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ set -xeuo pipefail
|
||||||
|
|
||||||
TOP=$(git rev-parse --show-toplevel)
|
TOP=$(git rev-parse --show-toplevel)
|
||||||
GITREV=$(git rev-parse HEAD)
|
GITREV=$(git rev-parse HEAD)
|
||||||
gitdescribe=$(git describe --always --tags $GITREV)
|
gitdescribe=$(git describe --always --tags --match 'v2???.*' $GITREV)
|
||||||
version=$(echo "$gitdescribe" | sed -e 's,-,\.,g' -e 's,^v,,')
|
version=$(echo "$gitdescribe" | sed -e 's,-,\.,g' -e 's,^v,,')
|
||||||
name=libostree
|
name=libostree
|
||||||
PKG_VER="${name}-${version}"
|
PKG_VER="${name}-${version}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue