gluon-core: add dirty flag to gluon-version, add site-version

This commit is contained in:
rubo77 2016-11-16 09:26:03 +01:00 committed by Matthias Schiffer
parent cb9b2335af
commit 2a101ddd56
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
2 changed files with 5 additions and 1 deletions

View File

@ -35,9 +35,12 @@ $(GLUON_SITEDIR)/site.mk:
-include $(GLUON_SITEDIR)/site.mk
GLUON_VERSION := $(shell cd $(GLUONDIR) && git describe --always 2>/dev/null || echo unknown)
GLUON_VERSION := $(shell cd $(GLUONDIR) && git describe --always --dirty=+ 2>/dev/null || echo unknown)
export GLUON_VERSION
GLUON_SITE_VERSION := $(shell cd $(GLUON_SITEDIR) && git --git-dir=.git describe --always --dirty=+ 2>/dev/null || echo unknown)
export GLUON_SITE_VERSION
GLUON_LANGS ?= en
export GLUON_LANGS

View File

@ -38,6 +38,7 @@ define Package/gluon-core/install
$(INSTALL_DIR) $(1)/lib/gluon
echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
echo "$(GLUON_SITE_VERSION)" > $(1)/lib/gluon/site-version
endef
define Package/gluon-core/postinst