diff options
| author | Francesco Potortì | 2003-01-17 14:48:15 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2003-01-17 14:48:15 +0000 |
| commit | 3f4a4bdf31863607bc882022c5d3d3a46a0de473 (patch) | |
| tree | 746bc017045a782479dabc4fdc2fc5e99c00e1be /admin | |
| parent | 33b97f32652474dc5b80c4f3eea2522032bceab7 (diff) | |
| download | emacs-3f4a4bdf31863607bc882022c5d3d3a46a0de473.tar.gz emacs-3f4a4bdf31863607bc882022c5d3d3a46a0de473.zip | |
(add-release-logs): Expand the directory name before calling find(1).
(add-release-logs): Use the same methods as add-log.el for writing
the date and the user's name and address
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/admin.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/admin/admin.el b/admin/admin.el index e45aa8f8ed6..e16b26eb6a8 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -48,12 +48,16 @@ Signal an error if the program returns with a non-zero exit status." | |||
| 48 | "Add \"Version VERSION released.\" change log entries in ROOT. | 48 | "Add \"Version VERSION released.\" change log entries in ROOT. |
| 49 | Root must be the root of an Emacs source tree." | 49 | Root must be the root of an Emacs source tree." |
| 50 | (interactive "DEmacs root directory: \nNVersion number: ") | 50 | (interactive "DEmacs root directory: \nNVersion number: ") |
| 51 | (setq root (expand-file-name root)) | ||
| 51 | (unless (file-exists-p (expand-file-name "src/emacs.c" root)) | 52 | (unless (file-exists-p (expand-file-name "src/emacs.c" root)) |
| 52 | (error "%s doesn't seem to be the root of an Emacs source tree" root)) | 53 | (error "%s doesn't seem to be the root of an Emacs source tree" root)) |
| 53 | (let* ((logs (process-lines "find" root "-name" "ChangeLog")) | 54 | (let* ((logs (process-lines "find" root "-name" "ChangeLog")) |
| 55 | (require 'add-log) | ||
| 54 | (entry (format "%s %s <%s>\n\n\t* Version %s released.\n\n" | 56 | (entry (format "%s %s <%s>\n\n\t* Version %s released.\n\n" |
| 55 | (format-time-string "%Y-%m-%d") | 57 | (funcall add-log-time-format) |
| 56 | (user-full-name) user-mail-address version))) | 58 | (or add-log-full-name (user-full-name)) |
| 59 | (or add-log-mailing-address user-mail-address) | ||
| 60 | version))) | ||
| 57 | (dolist (log logs) | 61 | (dolist (log logs) |
| 58 | (unless (string-match "/gnus/" log) | 62 | (unless (string-match "/gnus/" log) |
| 59 | (find-file log) | 63 | (find-file log) |
| @@ -84,5 +88,5 @@ Root must be the root of an Emacs source tree." | |||
| 84 | (set-version-in-file root "man/emacs.texi" version | 88 | (set-version-in-file root "man/emacs.texi" version |
| 85 | (rx (and "EMACSVER" (1+ space) | 89 | (rx (and "EMACSVER" (1+ space) |
| 86 | (submatch (1+ (in "0-9."))))))) | 90 | (submatch (1+ (in "0-9."))))))) |
| 87 | 91 | ||
| 88 | ;; admin.el ends here. | 92 | ;; admin.el ends here. |