meson: autogenerate AUTHORS

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2026-03-21 07:34:19 +01:00
parent b5e631f6f4
commit 41b9016db1

View File

@@ -64,3 +64,15 @@ require_cmd ronn
for page in ocserv.8 occtl.8 ocpasswd.8; do
ronn --roff "$DISTROOT/doc/${page}.md" -o "$DISTROOT/doc"
done
# --------------------------------------------------------------------------
# AUTHORS (generated from git history)
# --------------------------------------------------------------------------
require_cmd git
SRCROOT="${MESON_PROJECT_SOURCE_ROOT:-$MESON_SOURCE_ROOT}"
printf "The authors list is autogenerated from the git history; sorted by number of commits\n\n" \
> "$DISTROOT/AUTHORS"
git -C "$SRCROOT" shortlog -sen | cut -f2 | sed 's/@/ at /g' \
>> "$DISTROOT/AUTHORS"