hacking/authors.sh
fa550f3d
 #!/bin/sh
 # script from http://stackoverflow.com/questions/12133583
 set -e
 
 # Get a list of authors ordered by number of commits
 # and remove the commit count column
9de086d1
 AUTHORS=$(git --no-pager shortlog -nse --no-merges | cut -f 2- )
fa550f3d
 if [ -z "$AUTHORS" ] ; then
     echo "Authors list was empty"
     exit 1
 fi
 
 # Display the authors list and write it to the file
b066e9c1
 echo "$AUTHORS" | tee "$(git rev-parse --show-toplevel)/AUTHORS.TXT"