build: Make update-authors convenience target runnable from Meson

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-06-24 13:41:27 +01:00
parent 6e5f42be4d
commit 9a64c6c095
3 changed files with 19 additions and 1 deletions

View file

@ -40,7 +40,7 @@ EXTRA_DIST = \
all-local: Doxyfile
update-authors:
( cd $(srcdir) && git shortlog -s -e ) | cut -c 8- | sort > $(srcdir)/AUTHORS
cd $(srcdir) && ./maint/update-authors.sh
DISTCHECK_CONFIGURE_FLAGS = \
--enable-xml-docs \

11
maint/update-authors.sh Executable file
View file

@ -0,0 +1,11 @@
# Copyright 2010 Lennart Poettering
# Copyright 2022 Simon McVittie
# SPDX-License-Identifier: MIT
set -eux
if [ -n "${MESON_SOURCE_ROOT-}" ]; then
cd "${MESON_SOURCE_ROOT}"
fi
git shortlog -s -e | cut -c 8- | sort > AUTHORS

View file

@ -950,6 +950,13 @@ bonus_files = files(
'README',
)
if platform_unix
run_target(
'maintainer-update-authors',
command: 'maint/update-authors.sh',
)
endif
subdir('dbus')
subdir('bus')
subdir('tools')