utils/check-manpages
raw| 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: BSD-3-Clause |
| 3 | # Copyright 2019-2023, Intel Corporation |
| 4 | |
| 5 | # check-manpages -- a tool to test against some manpage errors |
| 6 | |
| 7 | MANS="$*" |
| 8 | [ -n "$MANS" ] || MANS="$(find doc -name '*.1' -o -name '*.3' -o -name '*.5' -o -name '*.7')" |
| 9 | [ -n "$MANS" ] || { echo >&2 "No man pages given, and none found in doc/"; exit 1;} |
| 10 | |
| 11 | for page in $MANS;do |
| 12 | echo $page |
| 13 | done | xargs -P `nproc` -n1 -- utils/check-manpage |