emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 9a4a24a 12/85: mk/targets.mk: Fix ORGVERSION in tag


From: ELPA Syncer
Subject: [elpa] externals/org 9a4a24a 12/85: mk/targets.mk: Fix ORGVERSION in tag-less repos
Date: Mon, 27 Sep 2021 15:57:40 -0400 (EDT)

branch: externals/org
commit 9a4a24a949c814740ff27e493175dc8b09c6be55
Author: Nicholas Vollmer <iarchivedmywholelife@gmail.com>
Commit: Kyle Meyer <kyle@kyleam.com>

    mk/targets.mk: Fix ORGVERSION in tag-less repos
    
    * mk/targets.mk (ORGVERSION, GITVERSION): trim "-dev" suffix from 
ORGVERSION.
    
    61336f80 uses org.el's Version metadata to generate ORGVERSION when
    the source repository has no tags.
    This can result in an org-version of "Major.Minor-dev".
    The "-dev" suffix is not recognized by `version-to-list' as a valid
    version syntax because it is not part of `version-regexp-alist'.
---
 mk/targets.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mk/targets.mk b/mk/targets.mk
index 693e378..ee6f3f3 100644
--- a/mk/targets.mk
+++ b/mk/targets.mk
@@ -15,8 +15,8 @@ ifneq ($(wildcard .git),)
   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"))')
+    ORGVERSION := $(patsubst %-dev,%,$(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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]