2
0

new_authors.sh 669 B

123456789101112131415161718
  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 'winlin' >/dev/null 2>&1 && continue;
  8. echo $author| grep 'winterserver' >/dev/null 2>&1 && continue;
  9. echo $author| grep 'wenjie.zhao' >/dev/null 2>&1 && continue;
  10. echo $author| grep 'zhaowenjie' >/dev/null 2>&1 && continue;
  11. grep $author $AFILE 1>/dev/null 2>/dev/null && continue;
  12. git log -1 --author="$author" --format='%an<%ae>'| sed 's/ //g'
  13. done