1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 20:01:56 +00:00
srs/trunk/scripts/new_authors.sh

17 lines
563 B
Bash
Raw Normal View History

2019-12-24 09:29:30 +00:00
#!/bin/bash
2021-06-30 02:28:23 +00:00
AFILE=`dirname $0`/../AUTHORS.txt
2019-12-24 09:29:30 +00:00
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
2021-06-01 01:36:28 +00:00
echo $author| grep -e "winlin" -e 'winterserver' >/dev/null 2>&1 && continue;
2019-12-24 09:29:30 +00:00
2021-05-18 03:47:50 +00:00
username=$(echo $author |awk -F '@' '{print $1}')
grep $username $AFILE 1>/dev/null 2>/dev/null && continue;
2019-12-24 09:29:30 +00:00
echo "* $(git log -1 --author="$author" --format='`%an<%ae>`'| sed 's/ //g')"
2019-12-24 09:29:30 +00:00
done