From 37640986fd4d538044039fb4eb4e9c40bee673e2 Mon Sep 17 00:00:00 2001 From: Simon Tournier <simon.tournier@u-paris.fr> Date: Tue, 11 Feb 2025 16:22:28 +0100 Subject: [PATCH] doc: build: Replace suffix '-book' by '-booklet'. Avoid mistake as 68767291672e4f3f8ce1f9e3cfeede6e8f6d173f when publishing the activity report. * doc/build.scm (latex->pdf)<build>: Rename the output file. --- doc/build.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/build.scm b/doc/build.scm index d6067c5..530d643 100644 --- a/doc/build.scm +++ b/doc/build.scm @@ -383,7 +383,15 @@ PDF." ;; Create an A4 booklet. (invoke "pdfbook2" "-p" "a4paper" pdf-file ;; margins: - "-o" "0" "-i" "0" "-t" "0" "-b" "0")))))) + "-o" "0" "-i" "0" "-t" "0" "-b" "0")) + + ;; pdfbook2 internally adds the hard-coded suffix '-book'. + ;; Guix-HPC publishes the activity reports using the suffix + ;; '-booklet'. + (let* ((name (basename #$file ".tex")) + (book (string-append #$output "/" name "-book.pdf")) + (booklet (string-append #$output "/" name "-booklet.pdf"))) + (rename-file book booklet)))))) (computed-file (basename file ".tex") build)) -- GitLab