From c30f65237b647dfe2d836ae3ceba3af970e3d8c7 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sun, 18 Oct 2015 15:40:07 -0400 Subject: gnu: bash: Use 'install-file' instead of 'mkdir-p' and 'copy-file'. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/bash.scm (bash): Use 'install-file' instead of 'mkdir-p' and 'copy-file'. Signed-off-by: Ludovic Courtès --- gnu/packages/bash.scm | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 714fa8c596..b2f23a8442 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -149,18 +149,11 @@ number/base32-hash tuples, directly usable in the 'patch-series' form." (mkdir-p include) (for-each (lambda (file) (when (string-match includes file) - (let ((directory (string-append include))) - (mkdir-p directory) - (copy-file file - (string-append directory "/" - (basename file))))) + (install-file file include)) (when (string-match headers file) - (let ((directory (string-append include "/" - (dirname file)))) - (mkdir-p directory) - (copy-file file - (string-append directory "/" - (basename file)))))) + (install-file file + (string-append include "/" + (dirname file))))) (find-files "." "\\.h$")) (delete-file (string-append include "/" "y.tab.h")) #t))) -- cgit v1.2.3