coturn/authors.sh
Pavel Punsky 54842274d3
Scripts to generate AUTHORS and ChangeLog (#1101)
Originated by @KangLin in #1097 

Create scripts that generate ChangeLog and Authors - can be
combined/called by other scripts during build process
Scripts are idempotent: running them multiple times should not change
anything
They do not commit or tag - up to the author/reviewer to make those
changes

The lists are generated in Markdown compatible format (so that we can
change those files to .md in the future)

NOTES:
- Authors file is generated in alphabetical order, disregarding specific
contributions
- ChangeLog file is generated in order of commits, omitting bot commits
(dependabot)

Co-authored-by: Kang Lin <kl222@126.com>
2022-11-20 14:23:17 -08:00

15 lines
535 B
Bash
Executable File

#!/bin/bash
set -e
SOURCE_DIR=`pwd`
# Generate AUTHORS
echo "Thanks to the following contributors (in alphabetical order):" > ${SOURCE_DIR}/AUTHORS
echo "" >> ${SOURCE_DIR}/AUTHORS
echo "`git log --pretty=format:'- %an <%ae>' | grep -v dependabot | sort | uniq`" >> ${SOURCE_DIR}/AUTHORS
echo "" >> ${SOURCE_DIR}/AUTHORS
echo "Use the following command to query the author's commit:" >> ${SOURCE_DIR}/AUTHORS
echo " git log --author='author'" >> ${SOURCE_DIR}/AUTHORS
echo "Or see [ChangeLog](ChangeLog)" >> ${SOURCE_DIR}/AUTHORS