diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-20 12:51:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-05 13:58:33 +0100 |
commit | 51b13863a2d64fa7c8da8006c4d345e08f9986c2 (patch) | |
tree | e7f6eb01937300c666461b7c43ce67c3cf329ce2 /tools/meson-check-api-docs.sh | |
parent | sd-bus: remove 'hint_sync_call' parameter from various function calls (diff) | |
download | systemd-51b13863a2d64fa7c8da8006c4d345e08f9986c2.tar.xz systemd-51b13863a2d64fa7c8da8006c4d345e08f9986c2.zip |
meson: resurrect API documentation target
We had this functionality back in Automake times, let's resurrect it.
Diffstat (limited to 'tools/meson-check-api-docs.sh')
-rw-r--r-- | tools/meson-check-api-docs.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/meson-check-api-docs.sh b/tools/meson-check-api-docs.sh new file mode 100644 index 0000000000..5bc808c1e4 --- /dev/null +++ b/tools/meson-check-api-docs.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +set -eu + +for symbol in `nm -g --defined-only "$@" | grep " T " | cut -d" " -f3 | sort -u` ; do + if test -f ${MESON_BUILD_ROOT}/man/$symbol.3 ; then + echo "✓ Symbol $symbol() is documented." + else + printf " \x1b[1;31mSymbol $symbol() lacks documentation.\x1b[0m\n" + fi +done |