aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts/check-texinfo.awk.in
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-12-02 17:34:07 +0000
committerng0 <ng0@n0.is>2019-12-02 17:34:07 +0000
commit339d7a7d8ca789f9777501c3092e5c7ea0c4850a (patch)
tree5110bf9188f3c0c6d102cd4bf45d2325a5ff4136 /contrib/scripts/check-texinfo.awk.in
parent79ff68acae7e4774881d6bc53fc5c639da4a2e7b (diff)
parentfdf8c95a33fe6c81c93cd17ed7a38b8b55df7d54 (diff)
downloadgnunet-339d7a7d8ca789f9777501c3092e5c7ea0c4850a.tar.gz
gnunet-339d7a7d8ca789f9777501c3092e5c7ea0c4850a.zip
Merge branch 'master' into netbsd-supportnetbsd-support
Diffstat (limited to 'contrib/scripts/check-texinfo.awk.in')
-rwxr-xr-xcontrib/scripts/check-texinfo.awk.in59
1 files changed, 59 insertions, 0 deletions
diff --git a/contrib/scripts/check-texinfo.awk.in b/contrib/scripts/check-texinfo.awk.in
new file mode 100755
index 000000000..37e2c9f20
--- /dev/null
+++ b/contrib/scripts/check-texinfo.awk.in
@@ -0,0 +1,59 @@
1#!@AWKEXE@ -f
2#
3# Dedicated to the Public Domain.
4# SPDX-License-Identifier: 0BSD
5#
6# exception to add: ignore license files.
7# exception to add: uref's can go above 79 chars.
8
9
10BEGIN {
11 printf "Running basic texinfo linters\n" ;
12}
13
14{
15 if(/\t/) {
16 printf "...lines containing tabstops?\n" ;
17 print FILENAME":"NR":"$0 ;
18 }
19}
20
21{
22 if(length>79) {
23 printf "...line length over 79 chars?\n" ;
24 print FILENAME":"NR":"$0 ;
25 }
26}
27
28{
29 if(/@geq\{\}/) {
30 printf "...lines containing macros incompatible with old makeinfo?\n" ;
31 print FILENAME":"NR":"$0 ;
32 }
33}
34
35{
36 if (/@footnote\{/) {
37 printf "...lines containing macros incompatible with texi2mdoc?\n" ;
38 print FILENAME":"NR":"$0 ;
39 }
40}
41
42{
43 if (/TODO/) {
44 printf "...lines telling us what is left TODO?\n" ;
45 print FILENAME":"NR":"$0 ;
46 }
47
48 if (/XXX/) {
49 printf "...lines telling us what is left to fix?\n" ;
50 print FILENAME":"NR":"$0 ;
51 }
52}
53
54{
55 if (/wether/) {
56 printf "...lines containing a popular typo\n" ;
57 print FILENAME":"NR":"$0 ;
58 }
59}