Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ SBP_TESTS_SPEC_DIR := $(SWIFTNAV_ROOT)/spec/tests/yaml/
GENENV ?= py # the system's default python version
SBP_GEN_BIN := tox -e $(GENENV) --

SBP_VERSION := $(shell git describe --always --tags)
SBP_VERSION := $(shell git describe --match 'v*' --always --tags)
SBP_VERSION_UNPREFIXED := $(shell echo $(SBP_VERSION) | sed 's/^v//')
SBP_STAGING := $(shell git describe --match 'libsbp-staging*' --always --tags | grep -q '^libsbp-staging' && echo 1 || echo 0)

CHANGELOG_MAX_ISSUES := 100

Expand Down Expand Up @@ -504,3 +505,7 @@ spec-validator-test:
python -m mypy --install scripts/spec_validator.py
python -m black --check scripts/spec_validator.py
./scripts/validation_test_harness.bash 2>&1 | grep -E 'PASS|FAIL'

version:
@echo "SBP version: $(SBP_VERSION)"
@echo "SBP is staging: $(SBP_STAGING)"