diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rwxr-xr-x | maint/update-authors.sh | 11 | ||||
-rw-r--r-- | meson.build | 7 |
3 files changed, 19 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 37415bab..1587dc7c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/maint/update-authors.sh b/maint/update-authors.sh new file mode 100755 index 00000000..9718811e --- /dev/null +++ b/maint/update-authors.sh @@ -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 diff --git a/meson.build b/meson.build index 6244db65..ac8ba6cf 100644 --- a/meson.build +++ b/meson.build @@ -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') |