defs.mk: Fix initial version 1.0.0-0-dev
If a project is not initialized via make pkg-init-%, it doesn't contain a VERSION file. When CI tries to build and package such a project, it auto-creates a VERSION file, but a broken one: The revision isn't properly seperated by a dash but by a dot, which makes CI give up while parsing it.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
23c5c4269a
commit
ecbe9d20b3
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ ifeq ($(VERSION),)
|
||||||
ifneq ($(wildcard $(VERSION_FILE)),)
|
ifneq ($(wildcard $(VERSION_FILE)),)
|
||||||
VERSION := $(shell $(CAT) $(VERSION_FILE))
|
VERSION := $(shell $(CAT) $(VERSION_FILE))
|
||||||
else
|
else
|
||||||
VERSION := $(shell echo 1.0.0.0-dev | tee $(VERSION_FILE))
|
VERSION := $(shell echo 1.0.0-0-dev | tee $(VERSION_FILE))
|
||||||
$(warning Automatically created missing $(VERSION_FILE).)
|
$(warning Automatically created missing $(VERSION_FILE).)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue