1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

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

@@ -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