* check versions vs. git tags

* neglect -Wunused-variable for MSVC compiler
This commit is contained in:
Mario Fink
2021-06-10 13:27:40 +02:00
parent 3c72747def
commit 1e2b344104
4 changed files with 22 additions and 5 deletions

View File

@@ -21,7 +21,10 @@ LIB := $(foreach dir,$(shell ls $(LIBB)),-I $(LIBB)$(dir))
# determine git version/commit tag
GTAG := $(shell git tag | tail -n1)
GTAGV := $(shell git tag | tail -n1 | tr -d 'v')
GHSH := $(shell git rev-parse HEAD | head -c8)
PIPYVS := $(shell grep "version" pip/setup.py | tr -d 'version=",# ')
PICGVS := $(shell grep "version" pip/setup.cfg | tr -d 'version=",# ')
# define install location
INST := /usr/local/bin
@@ -30,6 +33,18 @@ INST := /usr/local/bin
OST := $(shell uname)
CWD := $(shell pwd)
# --------------------------------------------------------------------------- #
# version/tag check
checkversion:
@echo "git tag: "$(GTAG)
@echo "git head: "$(GHSH)
@echo "pip setup.py version: "$(PIPYVS)
@echo "pip setup.cfg version: "$(PICGVS)
$(GTAGV):
@echo "check consistent versions (git tag vs. setup.py): "$(GTAG)" <-> "$(PIPYVS)" "
# --------------------------------------------------------------------------- #
# CLI tool
@@ -116,7 +131,7 @@ docker-clean:
# --------------------------------------------------------------------------- #
# pip
pip-publish: cython-build
pip-publish: $(PIPYVS) cython-build
cd pip/ && make pip-publish
pip-test: