]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
AUTHORS: take into account of Co-authored-by:
authorDaiki Ueno <ueno@gnu.org>
Sat, 29 May 2021 04:56:57 +0000 (06:56 +0200)
committerDaiki Ueno <ueno@gnu.org>
Sat, 29 May 2021 06:37:54 +0000 (08:37 +0200)
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Makefile.am

index ae5820c62d6299b8ebba4b66c11c6df4a82589f5..80cb64a113bf4033aedbcf2f39d74bcd7953f45f 100644 (file)
@@ -60,15 +60,17 @@ endif
 ACLOCAL_AMFLAGS = -I m4 -I src/libopts/m4 -I src/gl/m4 -I lib/unistring/m4 --install
 
 EXTRA_DIST = cfg.mk maint.mk CONTRIBUTING.md README.md LICENSE AUTHORS NEWS \
-       ChangeLog THANKS INSTALL.md RELEASES.md
+       ChangeLog THANKS INSTALL.md RELEASES.md .mailmap
 
 DISTCLEANFILES = AUTHORS
 
-AUTHORS:
-       @echo -e "The authors list is autogenerated from the git history; sorted by number of commits\n" >AUTHORS
-       @git shortlog -sen| cut -f 2 | sed 's/@/ at /g' >> AUTHORS
-       @echo -e "\n\nThe translators list is autogenerated from po file history\n" >>AUTHORS
-       @sed -n 's/.*Last-Translator: *\(.*\) *<.*/\1/p' po/*.po | sort -u >>AUTHORS
+AUTHORS: Makefile.am .mailmap
+       $(AM_V_GEN) { \
+               echo -e "The authors list is autogenerated from the git history; sorted by number of commits\n"; \
+               git shortlog -sen --no-merges --group author --group trailer:co-authored-by | cut -f 2 | sed 's/@/ at /g'; \
+               echo -e "\n\nThe translators list is autogenerated from po file history\n"; \
+               sed -n 's/.*Last-Translator: *\(.*\) *<.*/\1/p' po/*.po | sort -u; \
+       } > $@-t && mv $@-t $@
 
 pic-check:
        @echo "Checking for position dependent code"