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:
Jan Lindemann 2026-05-14 11:46:38 +02:00
commit ecbe9d20b3
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -235,7 +235,7 @@ ifeq ($(VERSION),)
ifneq ($(wildcard $(VERSION_FILE)),)
VERSION := $(shell $(CAT) $(VERSION_FILE))
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).)
endif
endif