1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 11:21:52 +00:00
srs/trunk/scripts/new_authors.sh

19 lines
669 B
Bash
Raw Normal View History

2019-12-24 09:29:30 +00:00
#!/bin/bash
AFILE=`dirname $0`/../../AUTHORS.txt
if [[ ! -f $AFILE ]]; then echo "No file at $AFILE"; exit -1; fi
authors=`git log --format='%ae'|grep -v localhost|grep -v demo|grep -v none|sort|uniq`
if [[ $? -ne 0 ]]; then echo "no authors"; exit -1; fi
for author in $authors; do
echo $author| grep 'winlin' >/dev/null 2>&1 && continue;
echo $author| grep 'winterserver' >/dev/null 2>&1 && continue;
echo $author| grep 'wenjie.zhao' >/dev/null 2>&1 && continue;
echo $author| grep 'zhaowenjie' >/dev/null 2>&1 && continue;
grep $author $AFILE 1>/dev/null 2>/dev/null && continue;
git log -1 --author="$author" --format='%an<%ae>'| sed 's/ //g'
done