summaryrefslogtreecommitdiffstats
path: root/tools/meson-check-api-docs.sh
blob: 5bc808c1e497aa67814c53d3d06eae27f2d99963 (plain)
1
2
3
4
5
6
7
8
9
10
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