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

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

[elpa] externals/transient 39c536e 1/4: make: Add bump-version target


From: Jonas Bernoulli
Subject: [elpa] externals/transient 39c536e 1/4: make: Add bump-version target
Date: Tue, 20 Apr 2021 12:39:56 -0400 (EDT)

branch: externals/transient
commit 39c536eab6c9a2e82ae7f1e174782560415cd6a0
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    make: Add bump-version target
    
    Make "texi" depend on it, which (while not "correct")
    ensures that it is run, even when I forget to do so.
---
 Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 1d04e13..6338f07 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ lisp:
 docs:
        @$(MAKE) -C docs docs
 
-texi:
+texi: bump-version
        @$(MAKE) -C docs texi
 
 info:
@@ -46,6 +46,11 @@ publish:
 release:
        @$(MAKE) -C docs release
 
+bump-version:
+       @printf "Setting version in transient.el to $(VERSION)\n"
+       @test -n "$(VERSION)" || (echo "Version not specified"; false)
+       @sed -i -e "/Package-Version:/s|[0-9.]\+|$(VERSION)|" lisp/transient.el
+
 clean:
        @printf "Cleaning...\n"
        @$(MAKE) -C lisp clean



reply via email to

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