Rules.inc: Fixed git revision parsing

This commit is contained in:
Bart Trzynadlowski 2022-06-23 12:38:58 -07:00
parent 8c8cc3d32b
commit d42f7d6563

View file

@ -229,7 +229,7 @@ release:: print_message
release:: clean
release:: all
set_version:
$(eval VERSION = $(subst ',,0.3a-git-$(shell git rev-parse --short HEAD --sq)))
$(eval VERSION = $(strip$(subst ',,0.3a-git-$(shell git rev-parse --short HEAD --sq))))
$(eval SUPERMODEL_BUILD_FLAGS += -DSUPERMODEL_VERSION=\"$(VERSION)\")
print_message:
$(info Building Supermodel Version $(VERSION))