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

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

[nongnu] elpa/with-editor 0a8d9ce 039/140: manual: set version in Org so


From: Jonas Bernoulli
Subject: [nongnu] elpa/with-editor 0a8d9ce 039/140: manual: set version in Org source
Date: Fri, 6 Aug 2021 12:51:16 -0400 (EDT)

branch: elpa/with-editor
commit 0a8d9cea6f4c34f25342767f8e6ec2203a9d28d8
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    manual: set version in Org source
---
 Makefile        | 5 ++++-
 with-editor.org | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 9c99969..cb9176e 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@ help:
        $(info make html         - generate html manual file)
        $(info make html-dir     - generate html manual directory)
        $(info make pdf          - generate pdf manual)
+       $(info make bump-version - bump version strings)
        $(info make authors      - generate AUTHORS.md)
        $(info make preview      - preview html manual)
        $(info make publish      - publish html manual)
@@ -48,6 +49,9 @@ loaddefs: $(PKG)-autoloads.el
        @printf "Compiling $<\n"
        @$(EMACS) -Q --batch $(EFLAGS) -L . $(DFLAGS) -f batch-byte-compile $<
 
+bump-version:
+       @sed -i -e "s/\(#+SUBTITLE: for version \)[.0-9]*/\1$(VERSION)/" 
$(PKG).org
+
 texi: $(PKG).texi
 info: $(PKG).info dir
 html: $(PKG).html
@@ -58,7 +62,6 @@ pdf:  $(PKG).pdf
        @$(EMACS) -Q --batch $(OFLAGS) \
        -l ox-texinfo+.el $< -f org-texinfo-export-to-texinfo
        @printf "\n" >> $@
-       @sed -i -e '/^@title /a@subtitle for version $(VERSION)' $@
        @rm -f $@~
 
 %.info: %.texi
diff --git a/with-editor.org b/with-editor.org
index 8fde5bb..d3e8591 100644
--- a/with-editor.org
+++ b/with-editor.org
@@ -7,6 +7,7 @@
 #+TEXINFO_DIR_CATEGORY: Emacs
 #+TEXINFO_DIR_TITLE: With-Editor: (with-editor).
 #+TEXINFO_DIR_DESC: Using the Emacsclient as $EDITOR
+#+SUBTITLE: for version 2.5.11
 
 #+TEXINFO_DEFFN: t
 #+TEXINFO_CLASS: info+



reply via email to

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