[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa-admin 9c8cf14 320/439: * admin/archive-contents.el (archiv
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa-admin 9c8cf14 320/439: * admin/archive-contents.el (archive-refresh-pkg-file): Resurrect. |
Date: |
Sun, 17 Oct 2021 15:48:28 -0400 (EDT) |
branch: elpa-admin
commit 9c8cf14048832d9548ad4e0f1115be19a2b5daf2
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* admin/archive-contents.el (archive-refresh-pkg-file): Resurrect.
Was called archive--refresh-pkg-file previously.
* GNUmakefile (%-autoloads.el): Use new name.
---
GNUmakefile | 8 ++++----
admin/archive-contents.el | 6 ++++++
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/GNUmakefile b/GNUmakefile
index 8bfd49b..5d2095f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -138,10 +138,10 @@ autoloads := $(foreach pkg, $(pkgs), $(pkg)/$(notdir
$(pkg))-autoloads.el)
$(foreach al, $(autoloads), $(eval $(call RULE-srcdeps, $(al))))
%-autoloads.el:
@echo 'Generating autoloads for $@'
- @cd $(dir $@) && \
- $(EMACS) -l $(CURDIR)/admin/archive-contents.el \
- --eval "(archive--refresh-pkg-file)" \
- --eval "(require 'package)" \
+ @cd $(dir $@) && \
+ $(EMACS) -l $(CURDIR)/admin/archive-contents.el \
+ --eval "(archive-refresh-pkg-file)" \
+ --eval "(require 'package)" \
--eval "(load (expand-file-name \"../names/names-autoloads.el\")
t t)" \
--eval "(package-generate-autoloads \"$$(basename $$(pwd))\" \
\"$$(pwd)\")"
diff --git a/admin/archive-contents.el b/admin/archive-contents.el
index bebf5e4..56f2b27 100644
--- a/admin/archive-contents.el
+++ b/admin/archive-contents.el
@@ -341,6 +341,12 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
(error "File not found: %s" pkg-file))
(archive--form-from-file-contents pkg-file)))
+(defun archive-refresh-pkg-file ()
+ ;; Note: Used via --batch by GNUmakefile rule.
+ (let* ((dir (directory-file-name default-directory))
+ (pkg (file-name-nondirectory dir)))
+ (archive--write-pkg-file dir pkg (archive--metadata dir pkg))))
+
(defun archive--write-pkg-file (pkg-dir name metadata)
;; FIXME: Use package-generate-description-file!
(let ((pkg-file (expand-file-name (concat name "-pkg.el") pkg-dir))
- [nongnu] elpa-admin 38e81a8 300/439: * README: Recommend "externals" and add some recommendations, (continued)
- [nongnu] elpa-admin 38e81a8 300/439: * README: Recommend "externals" and add some recommendations, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 655d2e7 305/439: Update packages/ack from upstream, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin f25cda3 303/439: * GNUmakefile (%.elc): Use load-prefer-newer, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin f85cb8d 302/439: * README (PACKAGES/Externals): Clarify use, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a71a25a 306/439: Update packages/darkroom from upstream, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 0c6fbe0 307/439: Update packages/ack from upstream, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin c943660 310/439: Merge commit '98405112baa5ce2a118d1c65184c005d8ddaa1a9', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 973ee9d 314/439: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 9822a67 315/439: README: Mention that the copyright in ELPA is with the FSF, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 14797ea 319/439: * admin/archive-contents.el: Adjust last change, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 9c8cf14 320/439: * admin/archive-contents.el (archive-refresh-pkg-file): Resurrect.,
Philip Kaludercic <=
- [nongnu] elpa-admin 4fc4d47 321/439: Merge commit '5b562e4ddfc449cd61c82ef7646a6c501b913b6c', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin b69dfb7 324/439: Merge commit '8dbcc8e07c462777378cc859eced622ec9b0fc4d', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 5ef13b0 326/439: Merge commit '33afdb46e1cd61251736816d965495525b36c9cd', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin f9ce2f8 328/439: Merge commit 'b2c449c0d5aad67eeee9857e7fd7710f985084ec', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 7be6e5f 330/439: ; Update copyright year, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a186f57 335/439: * README: Convert to org-mode and prepare for export., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin cff34fa 336/439: Support generating readme.html from README, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin cdef4ce 338/439: * admin/archive-contents.el: Add preliminary support for the NonGNU archive, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 0f8fca3 360/439: * elpa-admin.el: Add support for sending out release announcements, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 6d923b9 410/439: * elpa-admin.el (elpaa--prune-old-tarballs): Fix renaming destination, Philip Kaludercic, 2021/10/17