]> Savannah Git Hosting - gnulib.git/commitdiff
maintainer-makefile: derive VERSION from RELEASE only from command line
authorJim Meyering <meyering@meta.com>
Wed, 3 Jul 2024 21:07:16 +0000 (23:07 +0200)
committerSimon Josefsson <simon@josefsson.org>
Wed, 3 Jul 2024 21:09:14 +0000 (23:09 +0200)
* top/maint.mk (VERSION, RELEASE_TYPE): Do not let an environment-
specified RELEASE influence the VERSION and RELEASE_TYPE variables.
Reported by Simon Josefsson in
https://lists.gnu.org/archive/html/bug-gnulib/2024-07/msg00021.html

ChangeLog
top/maint.mk

index fcef360b224ee67c087213e870a3b8d8581aa9e4..a886e25cc230e4053ecfa4073c1a4e7825371e96 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-07-03  Jim Meyering  <meyering@meta.com>
+
+       maintainer-makefile: derive VERSION from RELEASE only from command line
+       * top/maint.mk (VERSION, RELEASE_TYPE): Do not let an environment-
+       specified RELEASE influence the VERSION and RELEASE_TYPE variables.
+       Reported by Simon Josefsson in
+       https://lists.gnu.org/archive/html/bug-gnulib/2024-07/msg00021.html
+
 2024-07-02  Bruno Haible  <bruno@clisp.org>
 
        git-merge-changelog: Simplify installation instructions.
index 2f35253fb785e0d3f0b676ee0f407efc59e841f0..de2aff8b9b2d325bfcb91e9be3eda7e1ccc5bd61 100644 (file)
@@ -124,8 +124,10 @@ release_archive_dir ?= ../release
 # If RELEASE_TYPE is undefined, but RELEASE is, use its second word.
 # But overwrite VERSION.
 ifdef RELEASE
-  VERSION := $(word 1, $(RELEASE))
-  RELEASE_TYPE ?= $(word 2, $(RELEASE))
+  ifeq ($(origin RELEASE),command line)
+    VERSION := $(word 1,$(RELEASE))
+    RELEASE_TYPE ?= $(word 2,$(RELEASE))
+  endif
 endif
 
 # Validate and return $(RELEASE_TYPE), or die.