aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2016-05-24 12:51:00 -0400
committerGlenn Morris2016-05-24 12:51:00 -0400
commitbea1b65b3c71668e3e990721e39bba8b5007e9c6 (patch)
tree981a95fc08f9637b9d17a9edf2446fec8b875aa9
parent503e752c4a4ec4dc05c112ae82753b85594c99be (diff)
downloademacs-bea1b65b3c71668e3e990721e39bba8b5007e9c6.tar.gz
emacs-bea1b65b3c71668e3e990721e39bba8b5007e9c6.zip
* admin/admin.el (add-release-logs): Also update etc/HISTORY.
-rw-r--r--admin/admin.el16
1 files changed, 15 insertions, 1 deletions
diff --git a/admin/admin.el b/admin/admin.el
index fe807ff96fe..a3d56277918 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -30,6 +30,7 @@
30 30
31(defun add-release-logs (root version &optional date) 31(defun add-release-logs (root version &optional date)
32 "Add \"Version VERSION released.\" change log entries in ROOT. 32 "Add \"Version VERSION released.\" change log entries in ROOT.
33Also update the etc/HISTORY file.
33Root must be the root of an Emacs source tree. 34Root must be the root of an Emacs source tree.
34Optional argument DATE is the release date, default today." 35Optional argument DATE is the release date, default today."
35 (interactive (list (read-directory-name "Emacs root directory: ") 36 (interactive (list (read-directory-name "Emacs root directory: ")
@@ -42,6 +43,12 @@ Optional argument DATE is the release date, default today."
42 (setq root (expand-file-name root)) 43 (setq root (expand-file-name root))
43 (unless (file-exists-p (expand-file-name "src/emacs.c" root)) 44 (unless (file-exists-p (expand-file-name "src/emacs.c" root))
44 (user-error "%s doesn't seem to be the root of an Emacs source tree" root)) 45 (user-error "%s doesn't seem to be the root of an Emacs source tree" root))
46 ;; FIXME this does not check that a ChangeLog that exists is not
47 ;; your own personal one. Perhaps we should move any existing file
48 ;; and unconditionally call make ChangeLog?
49 ;; Or make ChangeLog CHANGELOG=temp and compare with the existing?
50 (unless (file-exists-p (expand-file-name "ChangeLog" root))
51 (user-error "No top-level ChangeLog - run \"make ChangeLog\" first"))
45 (require 'add-log) 52 (require 'add-log)
46 (or date (setq date (funcall add-log-time-format nil t))) 53 (or date (setq date (funcall add-log-time-format nil t)))
47 (let* ((logs (process-lines "find" root "-name" "ChangeLog")) 54 (let* ((logs (process-lines "find" root "-name" "ChangeLog"))
@@ -53,7 +60,14 @@ Optional argument DATE is the release date, default today."
53 (dolist (log logs) 60 (dolist (log logs)
54 (find-file log) 61 (find-file log)
55 (goto-char (point-min)) 62 (goto-char (point-min))
56 (insert entry)))) 63 (insert entry)))
64 (let ((histfile (expand-file-name "etc/HISTORY" root)))
65 (unless (file-exists-p histfile)
66 (error "%s not present" histfile))
67 (find-file histfile)
68 (goto-char (point-max))
69 (search-backward " ")
70 (insert (format "GNU Emacs %s (%s) emacs-%s\n\n" version date version))))
57 71
58(defun set-version-in-file (root file version rx) 72(defun set-version-in-file (root file version rx)
59 "Subroutine of `set-version' and `set-copyright'." 73 "Subroutine of `set-version' and `set-copyright'."