gnu: hwinfo: Factorise 'install-man-pages.
* gnu/packages/hardware.scm (hwinfo)[arguments]: Get section numbers from the man page file names rather than hard-coding 2.
This commit is contained in:
parent
f93605b32b
commit
84779e6271
1 changed files with 5 additions and 9 deletions
|
@ -405,15 +405,11 @@ (define-public hwinfo
|
|||
(invoke "make" "doc")))
|
||||
(add-after 'install 'install-man-pages
|
||||
(lambda _
|
||||
(let* ((man (string-append #$output "/share/man"))
|
||||
(man1 (string-append man "/man1"))
|
||||
(man8 (string-append man "/man8")))
|
||||
(for-each
|
||||
(lambda (x) (install-file x man1))
|
||||
(find-files "doc" "\\.1$"))
|
||||
(for-each
|
||||
(lambda (y) (install-file y man8))
|
||||
(find-files "doc" "\\.8$"))))))))
|
||||
(for-each
|
||||
(lambda (file)
|
||||
(install-file file (string-append #$output "/share/man/man"
|
||||
(string-take-right file 1))))
|
||||
(find-files "doc" "\\.[0-9]$")))))))
|
||||
(native-inputs
|
||||
(list doxygen flex perl pkg-config))
|
||||
(inputs
|
||||
|
|
Loading…
Reference in a new issue