aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorVincent Belaïche2016-05-25 23:44:18 +0200
committerVincent Belaïche2016-05-25 23:44:18 +0200
commit6c12c53949acafbfcad2e08b1ac5cbe283d71597 (patch)
tree736a336f1b3cecaee73344c237d84545c1a57503 /admin
parent0be672542ad60e6c73d36b7fdc1b6786786595ad (diff)
parent853b9b92072e9eff11aff9c0110380c9a93864ca (diff)
downloademacs-6c12c53949acafbfcad2e08b1ac5cbe283d71597.tar.gz
emacs-6c12c53949acafbfcad2e08b1ac5cbe283d71597.zip
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Diffstat (limited to 'admin')
-rw-r--r--admin/admin.el19
-rw-r--r--admin/authors.el32
-rw-r--r--admin/make-tarball.txt15
3 files changed, 43 insertions, 23 deletions
diff --git a/admin/admin.el b/admin/admin.el
index a3d56277918..4af1ff9003a 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -43,12 +43,19 @@ Optional argument DATE is the release date, default today."
43 (setq root (expand-file-name root)) 43 (setq root (expand-file-name root))
44 (unless (file-exists-p (expand-file-name "src/emacs.c" root)) 44 (unless (file-exists-p (expand-file-name "src/emacs.c" root))
45 (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 46 (let ((clog (expand-file-name "ChangeLog" root)))
47 ;; your own personal one. Perhaps we should move any existing file 47 (if (file-exists-p clog)
48 ;; and unconditionally call make ChangeLog? 48 ;; Basic check that a ChangeLog that exists is not your personal one.
49 ;; Or make ChangeLog CHANGELOG=temp and compare with the existing? 49 ;; TODO Perhaps we should move any existing file and unconditionally
50 (unless (file-exists-p (expand-file-name "ChangeLog" root)) 50 ;; call make ChangeLog? Or make ChangeLog CHANGELOG=temp and compare
51 (user-error "No top-level ChangeLog - run \"make ChangeLog\" first")) 51 ;; with the existing?
52 (with-temp-buffer
53 (insert-file-contents clog)
54 (or (re-search-forward "^[ \t]*Copyright.*Free Software" nil t)
55 (user-error "ChangeLog looks like a personal one - remove it?")))
56 (or
57 (zerop (call-process "make" nil nil nil "-C" root "ChangeLog"))
58 (error "Problem generating ChangeLog"))))
52 (require 'add-log) 59 (require 'add-log)
53 (or date (setq date (funcall add-log-time-format nil t))) 60 (or date (setq date (funcall add-log-time-format nil t)))
54 (let* ((logs (process-lines "find" root "-name" "ChangeLog")) 61 (let* ((logs (process-lines "find" root "-name" "ChangeLog"))
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.
1366ROOT is the root directory under which to find the files. If called 1366ROOT is the root directory under which to find the files.
1367interactively, ROOT is read from the minibuffer. 1367Interactively, read ROOT from the minibuffer.
1368Result is a buffer *Authors* containing authorship information, and a 1368Accurate author information requires up-to-date change logs, so this
1369buffer *Authors Errors* containing references to unknown files." 1369first updates them, unless optional prefix argument NOLOGUPDATE is non-nil.
1370 (interactive "DEmacs source directory: ") 1370The result is a buffer *Authors* containing authorship information,
1371and 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
865. Copy lisp/loaddefs.el to lisp/ldefs-boot.el. 875. 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