gnu: bash: Use 'install-file' instead of 'mkdir-p' and 'copy-file'.

* gnu/packages/bash.scm (bash): Use 'install-file' instead of 'mkdir-p'
  and 'copy-file'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Leo Famulari 2015-10-18 15:40:07 -04:00 committed by Ludovic Courtès
parent 3dcbb75f63
commit c30f65237b
1 changed files with 4 additions and 11 deletions

View File

@ -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)))