new_authors.sh 563 B

12345678910111213141516
  1. #!/bin/bash
  2. AFILE=`dirname $0`/../AUTHORS.txt
  3. if [[ ! -f $AFILE ]]; then echo "No file at $AFILE"; exit -1; fi
  4. authors=`git log --format='%ae'|grep -v localhost|grep -v demo|grep -v none|sort|uniq`
  5. if [[ $? -ne 0 ]]; then echo "no authors"; exit -1; fi
  6. for author in $authors; do
  7. echo $author| grep -e "winlin" -e 'winterserver' >/dev/null 2>&1 && continue;
  8. username=$(echo $author |awk -F '@' '{print $1}')
  9. grep $username $AFILE 1>/dev/null 2>/dev/null && continue;
  10. echo "* $(git log -1 --author="$author" --format='`%an<%ae>`'| sed 's/ //g')"
  11. done