aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/lint-man.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/scripts/lint-man.sh b/contrib/scripts/lint-man.sh
new file mode 100755
index 000000000..6a9f544f4
--- /dev/null
+++ b/contrib/scripts/lint-man.sh
@@ -0,0 +1,18 @@
1#!/bin/sh
2#
3# SPDX-License-Identifier: 0BSD
4# spit out ONLY error messages using groff.
5
6echo "groff check"
7for f in `find . -name \*\.[1-9]`;
8do
9 LC_ALL=en_US.UTF-8 \
10 MANROFFSEQ='' \
11 MANWIDTH=80 \
12 groff -m mandoc -b -z -w w $f;
13done
14echo "mandoc check"
15# spit out ONLY error messages with mandoc:
16mandoc -T lint `find . -name \*\.[1-9]`
17#LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 /run/current-system/profile/bin/man --warnings -E UTF-8 -l -Tutf8 -Z <*.5> >report5.log
18#LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 /run/current-system/profile/bin/man --warnings -E UTF-8 -l -Tutf8 -Z <*.1> >report1.log