]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: Make update-authors convenience target runnable from Meson
authorSimon McVittie <smcv@collabora.com>
Fri, 24 Jun 2022 12:41:27 +0000 (13:41 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
Makefile.am
maint/update-authors.sh [new file with mode: 0755]
meson.build

index 37415bab5a6abdc65b3e33eeed226aadcaef46bd..1587dc7caaa87418fcbc0e42a7e274aef02de506 100644 (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 \
diff --git a/maint/update-authors.sh b/maint/update-authors.sh
new file mode 100755 (executable)
index 0000000..9718811
--- /dev/null
@@ -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
index 6244db659befc24fce4a4c5f82bebd91a9219bc1..ac8ba6cfcbb558bfc8c610e987d89a4e59c179fb 100644 (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')