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

integrate author check into travis

This commit is contained in:
Patrick Kanzler
2017-05-26 01:55:30 +02:00
parent 3f9d44ff15
commit 7c17141fb2
4 changed files with 26 additions and 3 deletions

14
doc/generate_authors.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
GENLIST=$(git shortlog -s -n | cut -f2 | sort)
AUTHORSFILE="$(dirname $0)/../AUTHORS"
TEMPAUTHORSFILE="/tmp/python-escpos-authorsfile"
if [ "$#" -eq 1 ]
then
echo "$GENLIST">$TEMPAUTHORSFILE
diff -q --from-file $AUTHORSFILE $TEMPAUTHORSFILE
else
echo "$GENLIST">$AUTHORSFILE
fi