Skip to content

Instantly share code, notes, and snippets.

@konstruktoid
Last active May 5, 2019 20:30
Show Gist options
  • Save konstruktoid/feff00732ee2b23ed1ced13d2083ac05 to your computer and use it in GitHub Desktop.
Save konstruktoid/feff00732ee2b23ed1ced13d2083ac05 to your computer and use it in GitHub Desktop.
#!/bin/sh
PROJNAME="$(basename "$(git rev-parse --show-toplevel)")"
CONTRIBUTORS="$(git shortlog -sne | awk '{$1=""; print $0}' | sed 's/^ /* /g' | sort -i -f -k2)"
DATE="$(LANG=C date --utc)"
{
echo "The following people, listed in alphabetical order, have contributed to ${PROJNAME}:"
echo
echo "${CONTRIBUTORS}"
echo
echo "This list was generated ${DATE}."
} > ./CONTRIBUTORS.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment