[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/package-vc-fixes 8956d833b3 12/14: Fix generation of documentati
From: |
Philip Kaludercic |
Subject: |
scratch/package-vc-fixes 8956d833b3 12/14: Fix generation of documentation for source packages |
Date: |
Wed, 9 Nov 2022 03:52:03 -0500 (EST) |
branch: scratch/package-vc-fixes
commit 8956d833b3b5652d0e0360ba0692d9c326bd1eb1
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Fix generation of documentation for source packages
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
Call "makeinfo" before "install-info"
---
lisp/emacs-lisp/package-vc.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 5d6d649dbc..f8948905ea 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -359,7 +359,11 @@ asynchronously."
"Build documentation for package PKG-DESC from documentation source in FILE.
FILE can be an Org file, indicated by its \".org\" extension,
otherwise it's assumed to be an Info file."
- (let ((pkg-dir (package-desc-dir pkg-desc)))
+ (let* ((pkg-name (package-desc-name pkg-desc))
+ (pkg-dir (package-desc-dir pkg-desc))
+ (output (file-name-concat
+ (format "%s.info" pkg-name)
+ pkg-dir)))
(when (string-match-p "\\.org\\'" file)
(require 'ox)
(require 'ox-texinfo)
@@ -367,8 +371,10 @@ otherwise it's assumed to be an Info file."
(insert-file-contents file)
(setq file (make-temp-file "ox-texinfo-"))
(org-export-to-file 'texinfo file)))
+ (call-process "makeinfo" nil nil nil
+ "--no-split" file "-o" output)
(call-process "install-info" nil nil nil
- file pkg-dir)))
+ output pkg-dir)))
(defun package-vc--unpack-1 (pkg-desc pkg-dir)
"Prepare PKG-DESC that is already checked-out in PKG-DIR.
- branch scratch/package-vc-fixes created (now 04ade0508d), Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes cb6415a45a 01/14: ; Fix interactive spec for 'package-vc-refresh', Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes 61048ae3fa 02/14: Handle strings as keys in 'package-vc-ensure-packages', Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes 6ba14d437b 10/14: Expand 'package-vc--unpack-1' documentation, Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes ed0caa9032 04/14: Mark 'package-vc-install-selected-packages' as interactive, Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes c94b80caf1 05/14: Autoload 'package-vc-install-selected-packages', Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes c7b485da75 07/14: Fix 'package-vc-selected-packages' documentation, Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes 8956d833b3 12/14: Fix generation of documentation for source packages,
Philip Kaludercic <=
- scratch/package-vc-fixes fe4b9fbbd3 03/14: Rename '-ensure-packages' to -install-selected-packages', Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes b19bf809f8 06/14: Mark 'package-vc-update' as interactive, Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes 55af74cd1e 08/14: Fix the docstring for 'package-vc--version', Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes 95882b0567 09/14: Clarify 'package-vc--build-documentation' docstring, Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes 12a7853844 11/14: Remove references to internal symbols from public docstrings, Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes 04ade0508d 14/14: Track 'default-directory' while updating source packages, Philip Kaludercic, 2022/11/09
- scratch/package-vc-fixes f23742da36 13/14: Allow specifying a :lisp-dir for package descriptions, Philip Kaludercic, 2022/11/09