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