We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c9b9c commit 16648d5Copy full SHA for 16648d5
1 file changed
Makefile
@@ -4,7 +4,7 @@ CURRENT_DIR = ${CURDIR}
4
BUILD_DIR ?= $(CURRENT_DIR)/build
5
PYTHON_BIN ?= python3
6
7
-API_VERSION := $(shell grep "^api_version" $(CURRENT_DIR)/web/api/py/codechecker_api/setup.py | cut -d"'" -f2)
+API_VERSION := $(shell python3 -c "exec(open('$(CURRENT_DIR)/web/codechecker_web/shared/version.py').read()); print(f'{max(SUPPORTED_VERSIONS)}.{SUPPORTED_VERSIONS[max(SUPPORTED_VERSIONS)]}.0')")
8
VENV_API_VERSION := $(shell \
9
if [ -f $(CURRENT_DIR)/venv_dev/bin/pip ]; then \
10
$(CURRENT_DIR)/venv_dev/bin/pip show codechecker-api 2>/dev/null | grep "^Version:" | cut -d' ' -f2; \
0 commit comments