improve output of authors script

This commit is contained in:
Patrick Kanzler 2020-05-26 21:29:16 +02:00
parent 323db98318
commit e3cf088d69
2 changed files with 5 additions and 2 deletions

View File

@ -13,4 +13,4 @@ csoft2k <csoft2k@hotmail.com>
Sergio Pulgarin <sergio.pulgarin@gmail.com>
reck31 <rakesh.gunduka@gmail.com>
Alex Debiasio <alex.debiasio@thinkin.io> <alex.debiasio@studenti.unitn.it>
Maximilian Wagenbach <maximilian.wagenbach@native-instruments.de> <maximilian.wagenbach@native-instruments.de>
Maximilian Wagenbach <maximilian.wagenbach@native-instruments.de>

View File

@ -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"
@ -13,6 +14,8 @@ if [ "$#" -eq 1 ]
cat $TEMPAUTHORSFILE
echo "\nUsing diff on files...\n"
diff --suppress-common-lines -b --from-file $AUTHORSFILE $TEMPAUTHORSFILE
echo "Authors with mail addresses:\n"
echo "$GENLIST_W_MAIL"
else
echo "$GENLIST">$AUTHORSFILE
fi