[PATCH 5/5] AUTHORS: Avoid duplicated entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
Mirrors libvirt-dbus commit 5ef5bdaef84a.

 AUTHORS.in  |  2 +-
 Makefile.am | 18 +++++++++++++-----
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/AUTHORS.in b/AUTHORS.in
index 6144fac64a..62afa56e27 100644
--- a/AUTHORS.in
+++ b/AUTHORS.in
@@ -90,7 +90,7 @@ Stefan de Konink <dekonink@xxxxxxxxxxxxxxxx>
 Takahashi Tomohiro <takatom@xxxxxxxxxxxxxx>
 Tatsuro Enokura <fj7716hz@xxxxxxxxxxxxxxxxx>
 
-#authorslist#
+#contributorslist#
 
 The libvirt logo was designed by Diana Fong
 
diff --git a/Makefile.am b/Makefile.am
index af0b735b82..1926e21b7a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux