aboutsummaryrefslogtreecommitdiffstats
path: root/admin/admin.el
diff options
context:
space:
mode:
authorKenichi Handa2013-03-10 23:43:58 +0900
committerKenichi Handa2013-03-10 23:43:58 +0900
commita6ebf83d9065b9b32231cd544d70195fb7ba97ae (patch)
tree06e464d66548640726c95710c386a9d0b7e4edd2 /admin/admin.el
parentc230dd7d89730f565df77046d0666d2082e386ee (diff)
parent45ba025e53f8d91f7b46dfabafa5c8aafe4906dc (diff)
downloademacs-a6ebf83d9065b9b32231cd544d70195fb7ba97ae.tar.gz
emacs-a6ebf83d9065b9b32231cd544d70195fb7ba97ae.zip
merge trunk
Diffstat (limited to 'admin/admin.el')
-rw-r--r--admin/admin.el29
1 files changed, 21 insertions, 8 deletions
diff --git a/admin/admin.el b/admin/admin.el
index e815dfade47..fc793c17bd2 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -28,25 +28,38 @@
28 28
29(defvar add-log-time-format) ; in add-log 29(defvar add-log-time-format) ; in add-log
30 30
31(defun add-release-logs (root version) 31;; Does this information need to be in every ChangeLog, as opposed to
32;; just the top-level one? Only if you allow changes the same
33;; day as the release.
34;; http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00161.html
35(defun add-release-logs (root version &optional date)
32 "Add \"Version VERSION released.\" change log entries in ROOT. 36 "Add \"Version VERSION released.\" change log entries in ROOT.
33Root must be the root of an Emacs source tree." 37Root must be the root of an Emacs source tree.
34 (interactive "DEmacs root directory: \nNVersion number: ") 38Optional argument DATE is the release date, default today."
39 (interactive (list (read-directory-name "Emacs root directory: ")
40 (read-string "Version number: "
41 (format "%s.%s" emacs-major-version
42 emacs-minor-version))
43 (read-string "Release date: "
44 (progn (require 'add-log)
45 (let ((add-log-time-zone-rule t))
46 (funcall add-log-time-format))))))
35 (setq root (expand-file-name root)) 47 (setq root (expand-file-name root))
36 (unless (file-exists-p (expand-file-name "src/emacs.c" root)) 48 (unless (file-exists-p (expand-file-name "src/emacs.c" root))
37 (error "%s doesn't seem to be the root of an Emacs source tree" root)) 49 (error "%s doesn't seem to be the root of an Emacs source tree" root))
38 (require 'add-log) 50 (require 'add-log)
51 (or date (setq date (let ((add-log-time-zone-rule t))
52 (funcall add-log-time-format))))
39 (let* ((logs (process-lines "find" root "-name" "ChangeLog")) 53 (let* ((logs (process-lines "find" root "-name" "ChangeLog"))
40 (entry (format "%s %s <%s>\n\n\t* Version %s released.\n\n" 54 (entry (format "%s %s <%s>\n\n\t* Version %s released.\n\n"
41 (funcall add-log-time-format) 55 date
42 (or add-log-full-name (user-full-name)) 56 (or add-log-full-name (user-full-name))
43 (or add-log-mailing-address user-mail-address) 57 (or add-log-mailing-address user-mail-address)
44 version))) 58 version)))
45 (dolist (log logs) 59 (dolist (log logs)
46 (unless (string-match "/gnus/" log) 60 (find-file log)
47 (find-file log) 61 (goto-char (point-min))
48 (goto-char (point-min)) 62 (insert entry))))
49 (insert entry)))))
50 63
51(defun set-version-in-file (root file version rx) 64(defun set-version-in-file (root file version rx)
52 (find-file (expand-file-name file root)) 65 (find-file (expand-file-name file root))