]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
AUTHORS: Avoid duplicated entries
authorAndrea Bolognani <abologna@redhat.com>
Wed, 4 Jul 2018 07:34:46 +0000 (09:34 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 9 Jul 2018 08:04:51 +0000 (10:04 +0200)
Instead of simply dumping the list of authors as obtained
from git, we can be a bit smarter and filter out maintainers
so that their names don't appear twice.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
AUTHORS.in
Makefile.am

index 6144fac64a6b6ac03f46e4f7666e1a0226460934..62afa56e270e9ff5290615825ec7bf51b6c2019b 100644 (file)
@@ -90,7 +90,7 @@ Stefan de Konink <dekonink@kinkrsoftware.nl>
 Takahashi Tomohiro <takatom@jp.fujitsu.com>
 Tatsuro Enokura <fj7716hz@aa.jp.fujitsu.com>
 
-#authorslist#
+#contributorslist#
 
 The libvirt logo was designed by Diana Fong
 
index af0b735b82d8fdde3c41a8a988a800ca9a9c8f93..1926e21b7a79d36ae58657aa7e43e6134263c09e 100644 (file)
@@ -109,9 +109,17 @@ gen-ChangeLog:
 
 .PHONY: gen-AUTHORS
 gen-AUTHORS:
-       $(AM_V_GEN)if test -d $(srcdir)/.git; then \
-           out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \
-           perl -p -e "s/#authorslist#// and print '$$out'" \
-             < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
-           mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ; \
+       $(AM_V_GEN)\
+       if test -d $(srcdir)/.git; then \
+         ( \
+           cd $(srcdir) && \
+           git log --pretty=format:'%aN <%aE>' | sort -u \
+         ) > all.list && \
+         sort -u $(srcdir)/AUTHORS.in > maint.list && \
+         comm -23 all.list maint.list > contrib.list && \
+         contrib="`cat contrib.list`" && \
+         perl -p -e "s/#contributorslist#// and print '$$contrib'" \
+           < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
+         mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS && \
+         rm -f all.list maint.list contrib.list; \
        fi