From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Generate 'AUTHORS' Date: Mon, 29 Jun 2015 22:26:01 +0300 Message-ID: <87twtq48qe.fsf_-_@gmail.com> References: <87pp4hnili.fsf@gmail.com> <87381b662u.fsf@gmail.com> <874mlrsgwk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9egx-0001AW-7I for guix-devel@gnu.org; Mon, 29 Jun 2015 15:26:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9egt-0004ma-LJ for guix-devel@gnu.org; Mon, 29 Jun 2015 15:26:07 -0400 In-Reply-To: <874mlrsgwk.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 28 Jun 2015 22:43:23 +0200") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s (2015-06-28 23:43 +0300) wrote: > I think we should consider generating =E2=80=98AUTHORS=E2=80=99 upon =E2= =80=98make dist=E2=80=99 > eventually, ideally with a list of those who contributed to the last > release, and then the list of all those who contributed at all. Any > takers? :-) I can try. IIUC it requires: - adding a script (let's say "generate-authors.scm") into "build-aux" directory that will call an appropriate "git log" command and mess with its output; something like this: --=-=-= Content-Type: text/x-scheme Content-Disposition: inline; filename=generate-authors.scm (use-modules (ice-9 popen) (ice-9 rdelim) (srfi srfi-1)) (define* (authors #:optional (range "HEAD")) "Return a list of authors for commit RANGE." (let* ((port (open-pipe* OPEN_READ "git" "log" "--format=%aN <%aE>" range)) (output (read-string port))) (close-port port) (let ((authors (string-split output #\newline))) (delete-duplicates authors)))) ;; (authors "v0.8.2..HEAD") --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable - adding a new target to "Makefile.am" (and to 'dist-hook' there). Right? However I see an issue with the autogenerated AUTHORS. There will be duplicates since people not always use a single name/e-mail. For example, there are: Joshua S. Grant Joshua S. Grant Joshua Grant Guy Grant or even: Ludovic Court=C3=A8s Ludovic Court=C3=A8s --=-=-=--