doc: Remove 'build.scm' from the source of the manual.
That way we no longer have to rebuild the whole manual when fiddling with 'build.scm'. * doc/build.scm <top level>: Define 'select?' and pass it to 'pdf+html-manual'.
This commit is contained in:
parent
a1b88219e8
commit
3cd1a7ac51
@ -946,7 +946,12 @@ commit date (an integer)."
|
|||||||
|
|
||||||
(let* ((root (canonicalize-path
|
(let* ((root (canonicalize-path
|
||||||
(string-append (current-source-directory) "/..")))
|
(string-append (current-source-directory) "/..")))
|
||||||
(commit date (latest-commit+date root)))
|
(commit date (latest-commit+date root))
|
||||||
|
(select? (let ((vcs? (git-predicate root)))
|
||||||
|
(lambda (file stat)
|
||||||
|
(and (vcs? file stat)
|
||||||
|
;; Filter out this file.
|
||||||
|
(not (string=? (basename file) "build.scm")))))))
|
||||||
(format (current-error-port)
|
(format (current-error-port)
|
||||||
"building manual from work tree around commit ~a, ~a~%"
|
"building manual from work tree around commit ~a, ~a~%"
|
||||||
commit
|
commit
|
||||||
@ -954,7 +959,7 @@ commit date (an integer)."
|
|||||||
(date (time-utc->date time)))
|
(date (time-utc->date time)))
|
||||||
(date->string date "~e ~B ~Y")))
|
(date->string date "~e ~B ~Y")))
|
||||||
(pdf+html-manual (local-file root "guix" #:recursive? #t
|
(pdf+html-manual (local-file root "guix" #:recursive? #t
|
||||||
#:select? (git-predicate root))
|
#:select? select?)
|
||||||
#:version (or (getenv "GUIX_MANUAL_VERSION")
|
#:version (or (getenv "GUIX_MANUAL_VERSION")
|
||||||
(string-take commit 7))
|
(string-take commit 7))
|
||||||
#:date date))
|
#:date date))
|
||||||
|
Loading…
Reference in New Issue
Block a user