[Fix] Use branch HEAD in make tarball
This commit is contained in:
parent
606760d54e
commit
5543d1f38c
3
Makefile
3
Makefile
|
@ -1,6 +1,5 @@
|
||||||
NAME = netoik-cicd
|
NAME = netoik-cicd
|
||||||
VERSION = $(shell [ -d ".git" ] && git describe | sed "s/-/./g")
|
VERSION = $(shell [ -d ".git" ] && git describe | sed "s/-/./g")
|
||||||
BRANCH = $(shell [ -d ".git" ] && git branch --show-current)
|
|
||||||
|
|
||||||
TEMP_DIR = "${PWD}/.temp"
|
TEMP_DIR = "${PWD}/.temp"
|
||||||
RPM_SOURCEDIR = $(shell rpm --eval "%{_sourcedir}")
|
RPM_SOURCEDIR = $(shell rpm --eval "%{_sourcedir}")
|
||||||
|
@ -41,7 +40,7 @@ $(RPM_SOURCEDIR)/$(NAME)-%.tar.gz: *
|
||||||
--prefix="$(NAME)-$(VERSION)/" \
|
--prefix="$(NAME)-$(VERSION)/" \
|
||||||
--worktree-attributes \
|
--worktree-attributes \
|
||||||
--verbose \
|
--verbose \
|
||||||
"$(BRANCH)"
|
HEAD
|
||||||
|
|
||||||
.PHONY: tarball
|
.PHONY: tarball
|
||||||
tarball: $(RPM_SOURCEDIR)/$(NAME)-$(VERSION).tar.gz
|
tarball: $(RPM_SOURCEDIR)/$(NAME)-$(VERSION).tar.gz
|
||||||
|
|
Loading…
Reference in New Issue