mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:53:05 +01:00
Version: fix revision calculation
This commit is contained in:
parent
b66874b7b3
commit
431290d47a
@ -1,10 +1,10 @@
|
||||
# Version
|
||||
TOXIC_VERSION = 0.5.2
|
||||
REV = $(shell if which git &>/dev/null ; then git rev-list HEAD --count 2>/dev/null || echo -n "error" ; else echo -n "error" ; fi)
|
||||
ifneq ($(REV), error)
|
||||
VERSION = $(TOXIC_VERSION)_r$(REV)
|
||||
else
|
||||
REV = $(shell git rev-list HEAD --count 2>/dev/null || echo -n "error")
|
||||
ifneq (, $(findstring error, $(REV)))
|
||||
VERSION = $(TOXIC_VERSION)
|
||||
else
|
||||
VERSION = $(TOXIC_VERSION)_r$(REV)
|
||||
endif
|
||||
|
||||
# Project directories
|
||||
|
Loading…
Reference in New Issue
Block a user