1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-21 23:20:10 +01:00

improve calculated version numbers (#651)

for modified git workspaces a `-modified` is added to the semantic version
  in the makefile.
This commit is contained in:
Bernhard E. Reiter 2025-09-01 15:40:26 +02:00 committed by GitHub
parent 1f1a2a4cbc
commit f6927154bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ tag_checked_out:
# In this case we might in some situations see an error like # In this case we might in some situations see an error like
# `/bin/bash: line 1: 2b55bbb: value too great for base (error token is "2b55bbb")` # `/bin/bash: line 1: 2b55bbb: value too great for base (error token is "2b55bbb")`
# which can be ignored. # which can be ignored.
GITDESC := $(shell git describe --tags --always 2>/dev/null || true) GITDESC := $(shell git describe --tags --always --dirty=-modified 2>/dev/null || true)
CURRENT_FOLDER_NAME := $(notdir $(CURDIR)) CURRENT_FOLDER_NAME := $(notdir $(CURDIR))
ifeq ($(strip $(GITDESC)),) ifeq ($(strip $(GITDESC)),)
SEMVER := $(CURRENT_FOLDER_NAME) SEMVER := $(CURRENT_FOLDER_NAME)