mirror of
https://github.com/correl/melpa.git
synced 2024-11-22 19:18:39 +00:00
Send output from info commands to "*package-build-info*" (see #786)
This commit is contained in:
parent
603e9fc90e
commit
af903d39cf
1 changed files with 16 additions and 14 deletions
|
@ -690,14 +690,15 @@ Deletes the .texi(nfo) files if they exist."
|
|||
target-dir)))
|
||||
(when (string-match ".texi\\(nfo\\)?$" source-file)
|
||||
(when (not (file-exists-p info-path))
|
||||
(ignore-errors
|
||||
(pb/run-process
|
||||
nil
|
||||
"makeinfo"
|
||||
(expand-file-name source-file source-dir)
|
||||
"-o"
|
||||
info-path)
|
||||
(message "Created %s" info-path)))
|
||||
(with-current-buffer (get-buffer-create "*package-build-info*")
|
||||
(ignore-errors
|
||||
(pb/run-process
|
||||
nil
|
||||
"makeinfo"
|
||||
(expand-file-name source-file source-dir)
|
||||
"-o"
|
||||
info-path)
|
||||
(message "Created %s" info-path))))
|
||||
(message "Removing %s" (expand-file-name dest-file target-dir))
|
||||
(delete-file (expand-file-name dest-file target-dir))))))
|
||||
|
||||
|
@ -712,12 +713,13 @@ Deletes the .texi(nfo) files if they exist."
|
|||
(when (and (or (string-match ".info$" source-file)
|
||||
(string-match ".texi\\(nfo\\)?$" source-file))
|
||||
(file-exists-p info-path))
|
||||
(ignore-errors
|
||||
(pb/run-process
|
||||
nil
|
||||
"install-info"
|
||||
(concat "--dir=" (expand-file-name "dir" target-dir))
|
||||
info-path))))))
|
||||
(with-current-buffer (get-buffer-create "*package-build-info*")
|
||||
(ignore-errors
|
||||
(pb/run-process
|
||||
nil
|
||||
"install-info"
|
||||
(concat "--dir=" (expand-file-name "dir" target-dir))
|
||||
info-path)))))))
|
||||
|
||||
(defun pb/copy-package-files (files source-dir target-dir)
|
||||
"Copy FILES from SOURCE-DIR to TARGET-DIR.
|
||||
|
|
Loading…
Reference in a new issue