]> git.ipfire.org Git - thirdparty/systemd.git/blame - tools/meson-check-api-docs.sh
Merge pull request #7540 from fbuihuu/systemd-delta-tweaks
[thirdparty/systemd.git] / tools / meson-check-api-docs.sh
CommitLineData
51b13863
LP
1#!/bin/sh
2
3set -eu
4
5for 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
11done