summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-03-04 14:12:43 +0000
committerng0 <ng0@n0.is>2019-03-04 14:12:43 +0000
commit0387ab1e0673c9f1f96a8c52a6c128052b52022c (patch)
treee5f565bf4a34b5811cac1e5a122b131fa37fb038 /contrib
parent77b135454da98206cc216b81d1afe57f57a6e1da (diff)
Add rule to lint man
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 @@
+#!/bin/sh
+#
+# SPDX-License-Identifier: 0BSD
+# spit out ONLY error messages using groff.
+
+echo "groff check"
+for f in `find . -name \*\.[1-9]`;
+do
+ LC_ALL=en_US.UTF-8 \
+ MANROFFSEQ='' \
+ MANWIDTH=80 \
+ groff -m mandoc -b -z -w w $f;
+done
+echo "mandoc check"
+# spit out ONLY error messages with mandoc:
+mandoc -T lint `find . -name \*\.[1-9]`
+#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
+#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