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:
14
doc/generate_authors.sh
Executable file
14
doc/generate_authors.sh
Executable 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
|
||||
|
Reference in New Issue
Block a user