Merge branch 'maint'

This commit is contained in:
Kyle Meyer 2021-02-05 01:21:05 -05:00
commit 2512fd702f
1 changed files with 9 additions and 1 deletions

View File

@ -11,8 +11,16 @@ INSTSUB = $(SUBDIRS:%=install-%)
ORG_MAKE_DOC ?= info html pdf
ifneq ($(wildcard .git),)
GITVERSION ?= $(shell git describe --match release\* --abbrev=6 HEAD)
ORGVERSION ?= $(subst release_,,$(shell git describe --match release\* --abbrev=0 HEAD))
ifeq ($(ORGVERSION),)
# In elpa.git, there are no tags available. Fall back to using
# the org.el header.
ORGVERSION := $(shell $(BATCH) --eval "(require 'lisp-mnt)" \
--visit lisp/org.el --eval '(princ (lm-header "version"))')
GITVERSION ?= $(ORGVERSION)-g$(shell git rev-parse --short=6 HEAD)
else
GITVERSION ?= $(shell git describe --match release\* --abbrev=6 HEAD)
endif
GITSTATUS ?= $(shell git status -uno --porcelain)
else
-include mk/version.mk