Skip to content

Commit 1746e86

Browse files
authored
add default version, change to 0.5.1 (#111)
1 parent d56ab39 commit 1746e86

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,15 @@ GIT_VERSION := $(shell if [ -d ".git" ]; then git version; fi 2>/dev/null)
341341
GIT_TAG_STATUS := $(shell git describe --tags HEAD 2>/dev/null)
342342
GIT_TAG_STATUS := $(.SHELLSTATUS)
343343

344+
DEFAULT_VERSION := 0.5.1
344345
ifdef GIT_VERSION
345346
# if has tag then use it
346347
ifeq ($(GIT_TAG_STATUS),0)
347348
# <tag>-<commit_count_after_tag>-<last_commit-hash>
348349
VERSION = $(shell git describe --tags HEAD | cut -b 1-)
349350
else
350351
# <base_version>-<total_commit_count>-<last_commit_hash>
351-
VERSION = 0.5.0-$(shell git rev-list --all --count)-$(shell git describe --always HEAD)
352+
VERSION = $(DEFAULT_VERSION)-$(shell git rev-list --all --count)-$(shell git describe --always HEAD)
352353
endif
353354
else
354355
# if it's not git repo then use date as version
@@ -397,7 +398,7 @@ PACKAGE_CATEGORY = security
397398

398399
LIBRARY_SO_VERSION := $(shell echo $(VERSION) | sed 's/^\([0-9.]*\)\(.*\)*$$/\1/')
399400
ifeq ($(LIBRARY_SO_VERSION),)
400-
LIBRARY_SO_VERSION := 0.5.0
401+
LIBRARY_SO_VERSION := $(DEFAULT_VERSION)
401402
endif
402403
DEBIAN_CODENAME := $(shell lsb_release -cs 2> /dev/null)
403404
DEBIAN_STRETCH_VERSION := libssl1.0.2

0 commit comments

Comments
 (0)