gluon-core: add dirty flag to gluon-version, add site-version
This commit is contained in:
parent
cb9b2335af
commit
2a101ddd56
@ -35,9 +35,12 @@ $(GLUON_SITEDIR)/site.mk:
|
|||||||
-include $(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
|
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
|
GLUON_LANGS ?= en
|
||||||
export GLUON_LANGS
|
export GLUON_LANGS
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ define Package/gluon-core/install
|
|||||||
|
|
||||||
$(INSTALL_DIR) $(1)/lib/gluon
|
$(INSTALL_DIR) $(1)/lib/gluon
|
||||||
echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
|
echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
|
||||||
|
echo "$(GLUON_SITE_VERSION)" > $(1)/lib/gluon/site-version
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-core/postinst
|
define Package/gluon-core/postinst
|
||||||
|
Loading…
Reference in New Issue
Block a user