From e3cf088d69c6a4861a9fb5537ce099a12b3b33ca Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Tue, 26 May 2020 21:29:16 +0200 Subject: [PATCH] improve output of authors script --- .mailmap | 2 +- doc/generate_authors.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index 5adfefb..825019f 100644 --- a/.mailmap +++ b/.mailmap @@ -13,4 +13,4 @@ csoft2k Sergio Pulgarin reck31 Alex Debiasio -Maximilian Wagenbach +Maximilian Wagenbach diff --git a/doc/generate_authors.sh b/doc/generate_authors.sh index 1fcda40..bf35156 100755 --- a/doc/generate_authors.sh +++ b/doc/generate_authors.sh @@ -1,6 +1,7 @@ #!/bin/sh GENLIST=$(git shortlog -s -n | cut -f2 | sort -f) +GENLIST_W_MAIL=$(git shortlog -s -e -n | cut -f2 | sort -f) AUTHORSFILE="$(dirname $0)/../AUTHORS" TEMPAUTHORSFILE="/tmp/python-escpos-authorsfile" @@ -12,7 +13,9 @@ if [ "$#" -eq 1 ] echo "\nNew authorsfile:\n" cat $TEMPAUTHORSFILE echo "\nUsing diff on files...\n" - diff --suppress-common-lines -b --from-file $AUTHORSFILE $TEMPAUTHORSFILE + diff --suppress-common-lines -b --from-file $AUTHORSFILE $TEMPAUTHORSFILE + echo "Authors with mail addresses:\n" + echo "$GENLIST_W_MAIL" else echo "$GENLIST">$AUTHORSFILE fi