aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/ChangeLog5
-rw-r--r--admin/admin.el27
2 files changed, 24 insertions, 8 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 6a636091a7c..2d09a749907 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,8 @@
12013-03-09 Glenn Morris <rgm@gnu.org>
2
3 * admin.el (add-release-logs): Provide interactive defaults.
4 Allow specification of the release date. Don't exclude gnus/.
5
12013-03-05 Paul Eggert <eggert@cs.ucla.edu> 62013-03-05 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 * notes/unicode: Add notes about Emacs source file encoding. 8 * notes/unicode: Add notes about Emacs source file encoding.
diff --git a/admin/admin.el b/admin/admin.el
index e815dfade47..fd9bde29f46 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -28,25 +28,36 @@
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 (funcall add-log-time-format)))))
35 (setq root (expand-file-name root)) 46 (setq root (expand-file-name root))
36 (unless (file-exists-p (expand-file-name "src/emacs.c" root)) 47 (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)) 48 (error "%s doesn't seem to be the root of an Emacs source tree" root))
38 (require 'add-log) 49 (require 'add-log)
50 (or date (setq date (funcall add-log-time-format)))
39 (let* ((logs (process-lines "find" root "-name" "ChangeLog")) 51 (let* ((logs (process-lines "find" root "-name" "ChangeLog"))
40 (entry (format "%s %s <%s>\n\n\t* Version %s released.\n\n" 52 (entry (format "%s %s <%s>\n\n\t* Version %s released.\n\n"
41 (funcall add-log-time-format) 53 date
42 (or add-log-full-name (user-full-name)) 54 (or add-log-full-name (user-full-name))
43 (or add-log-mailing-address user-mail-address) 55 (or add-log-mailing-address user-mail-address)
44 version))) 56 version)))
45 (dolist (log logs) 57 (dolist (log logs)
46 (unless (string-match "/gnus/" log) 58 (find-file log)
47 (find-file log) 59 (goto-char (point-min))
48 (goto-char (point-min)) 60 (insert entry))))
49 (insert entry)))))
50 61
51(defun set-version-in-file (root file version rx) 62(defun set-version-in-file (root file version rx)
52 (find-file (expand-file-name file root)) 63 (find-file (expand-file-name file root))