mk/targets.mk (GITVERSION): Fix version string for ELPA build
* mk/targets.mk (GITVERSION): Use previous convention for the Org version string on ELPA, where Org release tags are not available. Instead of the new release_N/A-N/A prefix, use the Org version from org.el file headers, as we did in Org 9.6. Reported-by: Sharon Kimble <boudiccas@skimble09.plus.com> Link: https://orgmode.org/list/87ikynyggt.fsf@skimble09.plus.com
This commit is contained in:
parent
223cc31ec7
commit
04d56f757f
|
@ -13,7 +13,7 @@ ifneq ($(wildcard .git),)
|
|||
# Use the org.el header.
|
||||
ORGVERSION := $(patsubst %-dev,%,$(shell $(BATCH) --eval "(require 'lisp-mnt)" \
|
||||
--visit lisp/org.el --eval '(princ (lm-header "version"))'))
|
||||
GITVERSION := $(shell git describe --match release\* --abbrev=6 HEAD 2>/dev/null || echo "release_N/A-N/A-$(shell git describe --match release\* --abbrev=6 --always HEAD)")
|
||||
GITVERSION := $(shell git describe --match release\* --abbrev=6 HEAD 2>/dev/null || echo "${ORGVERSION}-$(shell git describe --match release\* --abbrev=6 --always HEAD)")
|
||||
GITSTATUS := $(shell git status -uno --porcelain)
|
||||
else
|
||||
-include mk/version.mk
|
||||
|
|
Loading…
Reference in New Issue