openssl: Move documentation instead of copying and deleting it.

* gnu/packages/tls.scm
  (openssl)[arguments]<#:phases>{move-extra-documentation}: Use
  'rename-file' instead of 'copy-recursively' and
  'delete-file-recursively'.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Maxime Devos 2021-07-14 13:13:00 +02:00 committed by Mathieu Othacehe
parent f64a35b9de
commit 0196b866d3
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -420,10 +420,10 @@ (define-public openssl
(doc #$output:doc)
(man-target (string-append doc "/share/man/man3"))
(html-target (string-append doc "/share/doc/openssl")))
(copy-recursively man3 man-target)
(delete-file-recursively man3)
(copy-recursively html html-target)
(delete-file-recursively html))))
(mkdir-p (dirname man3-target))
(mkdir-p (dirname html-target))
(rename-file man3 man-target)
(rename-file html html-target))))
(add-after
'install 'remove-miscellany
(lambda _