[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: core-updates: Fix cups-minimal build failure
From: |
Andy Wingo |
Subject: |
Re: core-updates: Fix cups-minimal build failure |
Date: |
Mon, 27 Feb 2017 09:47:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
On Sun 26 Feb 2017 03:25, Leo Famulari <address@hidden> writes:
> Do you have any suggestions about how to make this more concise?
> + ;; Make the compressed manpages writable so that the
> + ;; reset-gzip-timestamps phase does not error out.
> + (add-before 'reset-gzip-timestamps 'make-manpages-writable
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let* ((out (assoc-ref outputs "out"))
> + (man1 (string-append out "/share/man/man1"))
> + (man5 (string-append out "/share/man/man5"))
> + (man7 (string-append out "/share/man/man7"))
> + (man8 (string-append out "/share/man/man8")))
> + (for-each (lambda (file) (chmod file #o666))
> + (find-files man1 "\\.gz"))
> + (for-each (lambda (file) (chmod file #o666))
> + (find-files man5 "\\.gz"))
> + (for-each (lambda (file) (chmod file #o666))
> + (find-files man7 "\\.gz"))
> + (for-each (lambda (file) (chmod file #o666))
> + (find-files man8 "\\.gz")))))
(for-each
(lambda (section)
(for-each
(lambda (file) (chmod file #o666))
(find-files (string-append out "/share/man/man" section)
"\\.gz")))
'("1" "5" "7" "8"))
Would be nice if there were a recursive find-files; oh well.
Andy