]> git.ipfire.org Git - thirdparty/systemd.git/blob - tools/meson-check-api-docs.sh
meson: unify linux/stat.h check with other checks and use _GNU_SOURCE
[thirdparty/systemd.git] / tools / meson-check-api-docs.sh
1 #!/bin/sh
2
3 set -eu
4
5 for symbol in `nm -g --defined-only "$@" | grep " T " | cut -d" " -f3 | sort -u` ; do
6 if test -f ${MESON_BUILD_ROOT}/man/$symbol.3 ; then
7 echo "✓ Symbol $symbol() is documented."
8 else
9 printf " \x1b[1;31mSymbol $symbol() lacks documentation.\x1b[0m\n"
10 fi
11 done