aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-03-04 14:37:50 +0000
committerng0 <ng0@n0.is>2019-03-04 14:38:06 +0000
commit25af6d913578ed7176d22d0eb187ad2a70d49374 (patch)
treed11692b116e52f32fdf4db80efc90603952f0f50 /contrib/scripts
parent5d87f45cf44826eff5f308ea59f7e708f7d7514f (diff)
downloadgnunet-25af6d913578ed7176d22d0eb187ad2a70d49374.tar.gz
gnunet-25af6d913578ed7176d22d0eb187ad2a70d49374.zip
safety checks for lint-man.sh
Diffstat (limited to 'contrib/scripts')
-rwxr-xr-xcontrib/scripts/lint-man.sh31
1 files changed, 22 insertions, 9 deletions
diff --git a/contrib/scripts/lint-man.sh b/contrib/scripts/lint-man.sh
index 6a9f544f4..1a3f1514a 100755
--- a/contrib/scripts/lint-man.sh
+++ b/contrib/scripts/lint-man.sh
@@ -3,16 +3,29 @@
3# SPDX-License-Identifier: 0BSD 3# SPDX-License-Identifier: 0BSD
4# spit out ONLY error messages using groff. 4# spit out ONLY error messages using groff.
5 5
6echo "groff check" 6existence()
7for f in `find . -name \*\.[1-9]`; 7{
8do 8 command -v "$1" >/dev/null 2>&1
9 LC_ALL=en_US.UTF-8 \ 9}
10 MANROFFSEQ='' \ 10
11 MANWIDTH=80 \ 11if existence groff;
12 groff -m mandoc -b -z -w w $f; 12then
13done 13 echo "groff check"
14 for f in `find . -name \*\.[1-9]`;
15 do
16 LC_ALL=en_US.UTF-8 \
17 MANROFFSEQ='' \
18 MANWIDTH=80 \
19 groff -m mandoc -b -z -w w $f;
20 done
21fi
22
14echo "mandoc check" 23echo "mandoc check"
15# spit out ONLY error messages with mandoc: 24# spit out ONLY error messages with mandoc:
16mandoc -T lint `find . -name \*\.[1-9]` 25if existence mandoc;
26then
27 mandoc -T lint `find . -name \*\.[1-9]`
28fi
29
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 30#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 31#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