diff options
author | Michael Adam <obnox@samba.org> | 2018-09-01 03:32:11 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2018-09-01 04:06:59 +0200 |
commit | 4c9289802a8c1f73fed7fc43a70c5f57a9617057 (patch) | |
tree | 77c3c5e1aa57096a600c9856be24026a56968c22 /scripts/gen-authors.sh | |
parent | 3eb3c2c099a6097cd821e96c22a247648784c14b (diff) |
scripts: add a script to generate the AUTHORS file from git
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'scripts/gen-authors.sh')
-rwxr-xr-x | scripts/gen-authors.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/gen-authors.sh b/scripts/gen-authors.sh new file mode 100755 index 0000000..671f0c1 --- /dev/null +++ b/scripts/gen-authors.sh @@ -0,0 +1,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}" |