[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Add rule to lint man
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Add rule to lint man |
Date: |
Mon, 04 Mar 2019 15:12:52 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 0387ab1e0 Add rule to lint man
0387ab1e0 is described below
commit 0387ab1e0673c9f1f96a8c52a6c128052b52022c
Author: ng0 <address@hidden>
AuthorDate: Mon Mar 4 14:12:43 2019 +0000
Add rule to lint man
---
Makefile.am | 4 ++++
contrib/scripts/lint-man.sh | 18 ++++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 41d366b93..a5e36545a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,3 +38,7 @@ check-bashism:
check-python:
printf "Running flake8 and 2to3 if detected.\n"
$(top_srcdir)/contrib/scripts/lint-python.sh
+
+check-man:
+ printf "Running lint-man.sh in doc/man.\n"
+ @cd $(top_srcdir)/doc/man ;
$(top_srcdir)/../../contrib/scripts/lint-man.sh || true
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
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Add rule to lint man,
gnunet <=