[PATCH virt-viewer] Use 'git shortlog' to generate authors

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

 



Use the more straightforward 'git shortlog' command to generate author
information for the tarball.
---

This sorts the author list by number of patches.  Or would alphabetical sort be
preferred?

 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 5046ccf..69a741f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -66,7 +66,7 @@ gen-ChangeLog:
 
 gen-AUTHORS:
 	$(AM_V_GEN)if test -d $(srcdir)/.git; then                      \
-	   out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \
+	   out="`cd $(srcdir) && git shortlog -e -n -s |cut -f2`" && \
 	   perl -p -e "s/#authorslist#// and print '$$out'"            \
 	     < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp &&        \
 	   mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ;           \
-- 
1.9.0

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux