Files
srs/trunk/scripts/new_authors.sh

17 lines
563 B
Bash
Raw Permalink Normal View History

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