From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: [PATCH] gnu: Add pyparsing. Date: Tue, 25 Nov 2014 11:21:37 -0600 Message-ID: <87a93ftcv2.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtJmq-0000JY-EF for guix-devel@gnu.org; Tue, 25 Nov 2014 12:20:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtJmh-0006Zq-3x for guix-devel@gnu.org; Tue, 25 Nov 2014 12:20:24 -0500 Received: from mail-ig0-x235.google.com ([2607:f8b0:4001:c05::235]:34164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtJmg-0006Zm-VS for guix-devel@gnu.org; Tue, 25 Nov 2014 12:20:15 -0500 Received: by mail-ig0-f181.google.com with SMTP id l13so1168154iga.8 for ; Tue, 25 Nov 2014 09:20:14 -0800 (PST) In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Federico Beffa Cc: Guix-devel Federico Beffa writes: > Please find attached a pyparsing package for review. [...] > + (with-directory-excursion "docs" > + (map (lambda (file) > + (copy-file file (string-append doc "/" file))) > + (find-files "." ".*"))) > + (with-directory-excursion "htmldoc" > + (map (lambda (file) > + (copy-file file (string-append html-doc "/" file))) > + (find-files "." ".*"))) > + (with-directory-excursion "examples" > + (map (lambda (file) > + (copy-file file (string-append examples "/" file))) > + (find-files "." ".*"))))) Perhaps: (for-each (lambda (dir tgt) (for-each (lambda (file) (copy-file file (string-append tgt "/" (basename file)))) (find-files dir ".*"))) (list "docs" "htmldoc" "examples") (list doc html-doc exmples) Not tested of course ;) Also, try running the package through `guix lint`. -- Eric Bavier Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html