summaryrefslogtreecommitdiffhomepage
path: root/scripts/gen-authors.sh
blob: 671f0c172082464ffcc9e9d0d313f80e1dedfe4a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

SCRIPT_DIR="$(cd "$(dirname "${0}")" && pwd)"
BASE_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
AUTHORS_FILE="${BASE_DIR}/AUTHORS"

type git > /dev/null || exit
test -d "${BASE_DIR}/.git" || exit

git log --all --format='%aN' | sort -u > "${AUTHORS_FILE}"