aboutsummaryrefslogtreecommitdiff
path: root/guix/build/utils.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-11-19 18:17:26 +0100
committerLudovic Courtès <ludo@gnu.org>2020-11-19 22:36:03 +0100
commitedbd8f3f7eeb0e49c03ca611e43b5a777bd0c762 (patch)
tree4abe14a10409a4d7990def85a041e3456e95e600 /guix/build/utils.scm
parent201cbcac3e9c23cc28352fa9ece3e677e22cc12c (diff)
downloadguix-edbd8f3f7eeb0e49c03ca611e43b5a777bd0c762.tar
guix-edbd8f3f7eeb0e49c03ca611e43b5a777bd0c762.tar.gz
utils: Add #:copy-file parameter to 'copy-recursively'.
* guix/build/utils.scm (copy-recursively): Add #:copy-file and honor it. * doc/guix.texi (Build Utilities): Adjust accordingly.
Diffstat (limited to 'guix/build/utils.scm')
-rw-r--r--guix/build/utils.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index 443a82046d..470e5cf001 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -343,11 +343,12 @@ name."
#:key
(log (current-output-port))
(follow-symlinks? #f)
+ (copy-file copy-file)
keep-mtime?)
"Copy SOURCE directory to DESTINATION. Follow symlinks if FOLLOW-SYMLINKS?
-is true; otherwise, just preserve them. When KEEP-MTIME? is true, keep the
-modification time of the files in SOURCE on those of DESTINATION. Write
-verbose output to the LOG port."
+is true; otherwise, just preserve them. Call COPY-FILE to copy regular files.
+When KEEP-MTIME? is true, keep the modification time of the files in SOURCE on
+those of DESTINATION. Write verbose output to the LOG port."
(define strip-source
(let ((len (string-length source)))
(lambda (file)