Ludovic Courtès (2015-06-28 23:43 +0300) wrote: > I think we should consider generating ‘AUTHORS’ upon ‘make dist’ > 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:
(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")
- 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 <youlys...@riseup.net> Joshua S. Grant <jgr...@parenthetical.io> Joshua Grant <ta...@riseup.net> Guy Grant <tadn...@gmail.com> or even: Ludovic Courtès <l...@gnu.org> Ludovic Courtès <ludovic.cour...@inria.fr>