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
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to