diff options
| author | Glenn Morris | 2016-05-25 12:47:13 -0400 |
|---|---|---|
| committer | Glenn Morris | 2016-05-25 12:47:13 -0400 |
| commit | 3f4a9d9d262d63562cdc9dde8d157567cb7c243c (patch) | |
| tree | 456daa0232ff12983e9227687132b6399741d5e0 /admin | |
| parent | 897fb6fa49d5ffc85f0a796e7414a43ef05ad096 (diff) | |
| download | emacs-3f4a9d9d262d63562cdc9dde8d157567cb7c243c.tar.gz emacs-3f4a9d9d262d63562cdc9dde8d157567cb7c243c.zip | |
* admin/authors.el (authors): First update the ChangeLog.
* admin/make-tarball.txt: Related updates.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/authors.el | 32 | ||||
| -rw-r--r-- | admin/make-tarball.txt | 15 |
2 files changed, 30 insertions, 17 deletions
diff --git a/admin/authors.el b/admin/authors.el index f1aa2fa4428..b93c9b251ca 100644 --- a/admin/authors.el +++ b/admin/authors.el | |||
| @@ -1361,24 +1361,36 @@ and changed by AUTHOR." | |||
| 1361 | (cons (list author wrote-list cowrote-list changed-list) | 1361 | (cons (list author wrote-list cowrote-list changed-list) |
| 1362 | authors-author-list))))) | 1362 | authors-author-list))))) |
| 1363 | 1363 | ||
| 1364 | (defun authors (root) | 1364 | (defun authors (root &optional nologupdate) |
| 1365 | "Extract author information from change logs and Lisp source files. | 1365 | "Extract author information from change logs and Lisp source files. |
| 1366 | ROOT is the root directory under which to find the files. If called | 1366 | ROOT is the root directory under which to find the files. |
| 1367 | interactively, ROOT is read from the minibuffer. | 1367 | Interactively, read ROOT from the minibuffer. |
| 1368 | Result is a buffer *Authors* containing authorship information, and a | 1368 | Accurate author information requires up-to-date change logs, so this |
| 1369 | buffer *Authors Errors* containing references to unknown files." | 1369 | first updates them, unless optional prefix argument NOLOGUPDATE is non-nil. |
| 1370 | (interactive "DEmacs source directory: ") | 1370 | The result is a buffer *Authors* containing authorship information, |
| 1371 | and a buffer *Authors Errors* containing references to unknown files." | ||
| 1372 | (interactive "DEmacs source directory: \nP") | ||
| 1371 | (setq root (expand-file-name root)) | 1373 | (setq root (expand-file-name root)) |
| 1374 | (unless (file-exists-p (expand-file-name "src/emacs.c" root)) | ||
| 1375 | (unless (y-or-n-p | ||
| 1376 | (format "Not the root directory of Emacs: %s, continue? " root)) | ||
| 1377 | (user-error "Not the root directory"))) | ||
| 1378 | ;; May contain your personal entries. | ||
| 1379 | (or (not (file-exists-p (expand-file-name "ChangeLog" root))) | ||
| 1380 | (y-or-n-p "Unversioned ChangeLog present, continue?") | ||
| 1381 | (user-error "Unversioned ChangeLog may have irrelevant entries")) | ||
| 1382 | (or nologupdate | ||
| 1383 | ;; There are likely to be things that need fixing, so we update | ||
| 1384 | ;; the versioned ChangeLog.N rather than the unversioned ChangeLog. | ||
| 1385 | (zerop (call-process "make" nil nil nil | ||
| 1386 | "-C" root "change-history-nocommit")) | ||
| 1387 | (error "Problem updating ChangeLog")) | ||
| 1372 | (let ((logs (process-lines find-program root "-name" "ChangeLog*")) | 1388 | (let ((logs (process-lines find-program root "-name" "ChangeLog*")) |
| 1373 | (table (make-hash-table :test 'equal)) | 1389 | (table (make-hash-table :test 'equal)) |
| 1374 | (buffer-name "*Authors*") | 1390 | (buffer-name "*Authors*") |
| 1375 | authors-checked-files-alist | 1391 | authors-checked-files-alist |
| 1376 | authors-invalid-file-names) | 1392 | authors-invalid-file-names) |
| 1377 | (authors-add-fixed-entries table) | 1393 | (authors-add-fixed-entries table) |
| 1378 | (unless (file-exists-p (expand-file-name "src/emacs.c" root)) | ||
| 1379 | (unless (y-or-n-p | ||
| 1380 | (format "Not the root directory of Emacs: %s, continue? " root)) | ||
| 1381 | (error "Not the root directory"))) | ||
| 1382 | (dolist (log logs) | 1394 | (dolist (log logs) |
| 1383 | (when (string-match "ChangeLog\\(.[0-9]+\\)?$" log) | 1395 | (when (string-match "ChangeLog\\(.[0-9]+\\)?$" log) |
| 1384 | (message "Scanning %s..." log) | 1396 | (message "Scanning %s..." log) |
diff --git a/admin/make-tarball.txt b/admin/make-tarball.txt index af18ff6a2e6..77486cc6399 100644 --- a/admin/make-tarball.txt +++ b/admin/make-tarball.txt | |||
| @@ -37,14 +37,15 @@ General steps (for each step, check for possible errors): | |||
| 37 | M-: (require 'authors) RET | 37 | M-: (require 'authors) RET |
| 38 | M-x authors RET | 38 | M-x authors RET |
| 39 | 39 | ||
| 40 | (This first updates the current versioned ChangeLog.N) | ||
| 41 | |||
| 40 | If there is an "*Authors Errors*" buffer, address the issues. | 42 | If there is an "*Authors Errors*" buffer, address the issues. |
| 41 | If there was a ChangeLog typo, run "make change-history" and then | 43 | If there was a ChangeLog typo, fix the relevant entry. |
| 42 | fix the newest ChangeLog history file. If a file was deleted or | 44 | If a file was deleted or renamed, consider adding an appropriate |
| 43 | renamed, consider adding an appropriate entry to | 45 | entry to authors-ignored-files, authors-valid-file-names, or |
| 44 | authors-ignored-files, authors-valid-file-names, or | ||
| 45 | authors-renamed-files-alist. | 46 | authors-renamed-files-alist. |
| 46 | 47 | ||
| 47 | If necessary, repeat M-x authors after making those changes. | 48 | If necessary, repeat 'C-u M-x authors' after making those changes. |
| 48 | Save the "*Authors*" buffer as etc/AUTHORS. | 49 | Save the "*Authors*" buffer as etc/AUTHORS. |
| 49 | Check the diff looks reasonable. Maybe add entries to | 50 | Check the diff looks reasonable. Maybe add entries to |
| 50 | authors-ambiguous-files or authors-aliases, and repeat. | 51 | authors-ambiguous-files or authors-aliases, and repeat. |
| @@ -85,8 +86,8 @@ General steps (for each step, check for possible errors): | |||
| 85 | 86 | ||
| 86 | 5. Copy lisp/loaddefs.el to lisp/ldefs-boot.el. | 87 | 5. Copy lisp/loaddefs.el to lisp/ldefs-boot.el. |
| 87 | 88 | ||
| 88 | Commit etc/AUTHORS, lisp/ldefs-boot.el, and the files changed | 89 | Commit ChangeLog.N, etc/AUTHORS, lisp/ldefs-boot.el, and the |
| 89 | by M-x set-version. | 90 | files changed by M-x set-version. |
| 90 | 91 | ||
| 91 | If someone else made a commit between step 1 and now, | 92 | If someone else made a commit between step 1 and now, |
| 92 | you need to repeat from step 4 onwards. (You can commit the files | 93 | you need to repeat from step 4 onwards. (You can commit the files |