[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor f602113 014/140: make: add bump-versions targe
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor f602113 014/140: make: add bump-versions target |
Date: |
Fri, 6 Aug 2021 12:51:10 -0400 (EDT) |
branch: elpa/with-editor
commit f6021135f16b95847412c94e52b39d85967f2bfa
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
make: add bump-versions target
---
Makefile | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 52 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 84c1ec5..bceb36e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ ELS = with-editor.el
DEPS = dash
+TEXIPAGES = with-editor.texi
INFOPAGES = with-editor.info
ELCS = $(ELS:.el=.elc)
@@ -13,14 +14,23 @@ BATCH = $(EMACS) -batch -Q -L . $(EFLAGS)
MAKEINFO ?= makeinfo
INSTALL_INFO ?= $(shell command -v ginstall-info || printf install-info)
+WITH_EDITOR_VERSION = 2.5.1
+ASYNC_VERSION = 1.5
+DASH_VERSION = 2.12.1
+
.PHONY: help clean AUTHORS.md
help:
- $(info make all - compile elisp and manual)
- $(info make lisp - compile elisp)
- $(info make info - generate info manual)
- $(info make authors - generate AUTHORS.md)
- $(info make clean - remove generated files)
+ $(info make all - compile elisp and manual)
+ $(info make lisp - compile elisp)
+ $(info make info - generate info manual)
+ $(info make clean - remove generated files)
+ $(info )
+ $(info Release Managment)
+ $(info =================)
+ $(info )
+ $(info make authors - generate AUTHORS.md)
+ $(info make bump-versions - bump versions for release)
@printf "\n"
all: lisp info
@@ -32,6 +42,8 @@ lisp: $(ELCS)
--eval '(setq with-editor-emacsclient-executable nil)'\
-f batch-byte-compile $<
+texi: $(TEXIPAGES)
+
info: $(INFOPAGES) dir
%.info: %.texi
@printf "Generating $@\n"
@@ -53,3 +65,38 @@ AUTHORS.md:
clean:
@printf "Cleaning...\n"
@rm -f $(ELCS)
+
+define set_package_requires
+(require 'dash)
+(with-current-buffer (find-file-noselect "with-editor.el")
+ (goto-char (point-min))
+ (re-search-forward "^;; Package-Requires: ")
+ (let ((s (read (buffer-substring (point) (line-end-position)))))
+ (--when-let (assq 'async s) (setcdr it (list async-version)))
+ (--when-let (assq 'dash s) (setcdr it (list dash-version)))
+ (delete-region (point) (line-end-position))
+ (insert (format "%S" s))
+ (save-buffer)))
+endef
+export set_package_requires
+#'
+
+define set_manual_version
+(let ((version (split-string "$(WITH_EDITOR_VERSION)" "\\.")))
+ (setq version (concat (car version) "." (cadr version)))
+ (with-current-buffer (find-file-noselect "with-editor.org")
+ (goto-char (point-min))
+ (re-search-forward "^#\\+SUBTITLE: for version ")
+ (delete-region (point) (line-end-position))
+ (insert version)
+ (save-buffer)))
+endef
+export set_manual_version
+
+bump-versions: bump-versions-1 texi
+bump-versions-1:
+ @$(BATCH) --eval "(progn\
+ (setq async-version \"$(ASYNC_VERSION)\")\
+ (setq dash-version \"$(DASH_VERSION)\")\
+ $$set_package_requires\
+ $$set_manual_version)"
- [nongnu] elpa/with-editor 580f225 001/140: reincarnation release, (continued)
- [nongnu] elpa/with-editor 580f225 001/140: reincarnation release, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 17df9b9 003/140: add AUTHORS.md and COPYING, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b3631b8 006/140: make: fix dir target, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fda7801 005/140: Add one more remap for evil, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 19716e9 007/140: remove with-editor.info, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ecff6bb 019/140: with-editor-file-name-history-exclude: new variable, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 4929d43 015/140: release version 2.5.2, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 650e0ad 025/140: manual: include sub-minor part of version in subtitle, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 7b6ac3a 026/140: base the Makefile on the same template used for other packages, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d28d074 008/140: regenerate manual after updating org and ox-texinfo+, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f602113 014/140: make: add bump-versions target,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor aaaeb98 022/140: prefer debianized binary name, if available, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fb1e10a 030/140: Ignore /dir, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1126035 004/140: Add remaps for common evil commands, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 5bb0b8a 012/140: with-editor-sleeping-editor: document csh complications, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 15b2565 013/140: AUTHORS.md: update list of contributors, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 19201be 021/140: with-editor-locate-emacsclient-1: look for yet another suffix, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor c05420c 020/140: don't use pcase-dolist, not all supported Emacsen have it, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor de4022e 018/140: stop directing users to the issue tracker of magit, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ee41302 029/140: manual: minor improvements and typo fixes, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 2248a63 031/140: bump version, Jonas Bernoulli, 2021/08/06