mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
improve calculated version numbers
for modified git workspaces a `-modified` is added to the semantic version in the makefile.
This commit is contained in:
parent
1f1a2a4cbc
commit
9af381e06b
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -47,7 +47,7 @@ tag_checked_out:
|
|||
# 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")`
|
||||
# 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))
|
||||
ifeq ($(strip $(GITDESC)),)
|
||||
SEMVER := $(CURRENT_FOLDER_NAME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue