Tue Jul 30 18:50:07 2013 UTC ()
Remove mentions of -O, noone's implemented it yet or will soon.


(wiz)
diff -r1.35 -r1.36 pkgsrc/textproc/mdoclint/files/mdoclint
diff -r1.9 -r1.10 pkgsrc/textproc/mdoclint/files/mdoclint.1

cvs diff -r1.35 -r1.36 pkgsrc/textproc/mdoclint/files/Attic/mdoclint (expand / switch to unified diff)

--- pkgsrc/textproc/mdoclint/files/Attic/mdoclint 2013/07/30 18:46:29 1.35
+++ pkgsrc/textproc/mdoclint/files/Attic/mdoclint 2013/07/30 18:50:07 1.36
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1#!@PERL5@ 1#!@PERL5@
2# 2#
3# $OpenBSD: mdoclint,v 1.14 2009/04/13 12:40:05 espie Exp $ 3# $OpenBSD: mdoclint,v 1.14 2009/04/13 12:40:05 espie Exp $
4# $NetBSD: mdoclint,v 1.35 2013/07/30 18:46:29 wiz Exp $ 4# $NetBSD: mdoclint,v 1.36 2013/07/30 18:50:07 wiz Exp $
5# 5#
6# Copyright (c) 2001-2013 Thomas Klausner 6# Copyright (c) 2001-2013 Thomas Klausner
7# All rights reserved. 7# All rights reserved.
8# 8#
9# Redistribution and use in source and binary forms, with or without 9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions 10# modification, are permitted provided that the following conditions
11# are met: 11# are met:
12# 1. Redistributions of source code must retain the above copyright 12# 1. Redistributions of source code must retain the above copyright
13# notice, this list of conditions and the following disclaimer. 13# notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright 14# 2. Redistributions in binary form must reproduce the above copyright
15# notice, this list of conditions and the following disclaimer in the 15# notice, this list of conditions and the following disclaimer in the
16# documentation and/or other materials provided with the distribution. 16# documentation and/or other materials provided with the distribution.
17# 17#
@@ -36,34 +36,34 @@ $| = 1; @@ -36,34 +36,34 @@ $| = 1;
36package Parser; 36package Parser;
37use Getopt::Std; 37use Getopt::Std;
38 38
39use constant { 39use constant {
40 OPENBSD => 0, 40 OPENBSD => 0,
41 NETBSD => 1, 41 NETBSD => 1,
42 SECTION_SEE_ALSO => 2, 42 SECTION_SEE_ALSO => 2,
43 SECTION_AUTHORS => 3 43 SECTION_AUTHORS => 3
44}; 44};
45 45
46use vars qw( 46use vars qw(
47 $opt_A $opt_a $opt_D $opt_d $opt_e $opt_F $opt_f $opt_H $opt_h $opt_l 47 $opt_A $opt_a $opt_D $opt_d $opt_e $opt_F $opt_f $opt_H $opt_h $opt_l
48 $opt_m 48 $opt_m
49 $opt_n $opt_O $opt_o $opt_P $opt_p $opt_r $opt_S $opt_s $opt_v $opt_w 49 $opt_n $opt_o $opt_P $opt_p $opt_r $opt_S $opt_s $opt_v $opt_w
50 $opt_X $opt_x 50 $opt_X $opt_x
51); 51);
52 52
53 53
54my $arch=`uname -m`; 54my $arch=`uname -m`;
55chomp($arch); 55chomp($arch);
56my $options="AaDdeFfHhlmnOoPprSsvwXx"; 56my $options="AaDdeFfHhlmnoPprSsvwXx";
57 57
58sub usage 58sub usage
59 { 59 {
60 my $default = OPENBSD ? "-AaDdfmnoPprSsXx" : "-AaDdeflmnoPprSsXx"; 60 my $default = OPENBSD ? "-AaDdfmnoPprSsXx" : "-AaDdeflmnoPprSsXx";
61  61
62 print STDERR <<"EOF"; 62 print STDERR <<"EOF";
63mdoclint: verify man page correctness 63mdoclint: verify man page correctness
64usage: mdoclint [-$options] file ... 64usage: mdoclint [-$options] file ...
65 -A warn about missing .An in AUTHORS section 65 -A warn about missing .An in AUTHORS section
66 -a warn about SEE ALSO section problems 66 -a warn about SEE ALSO section problems
67 -D warn about bad casing and archs in .Dt 67 -D warn about bad casing and archs in .Dt
68 -d warn about bad date strings (in .Dd only) 68 -d warn about bad date strings (in .Dd only)
69 -e warn about unsorted errors (for functions) 69 -e warn about unsorted errors (for functions)
@@ -260,31 +260,31 @@ sub forder { @@ -260,31 +260,31 @@ sub forder {
260 } 260 }
261 return (length($a) <=> length($b)); 261 return (length($a) <=> length($b));
262} 262}
263 263
264 264
265sub handle_options 265sub handle_options
266{ 266{
267 getopts($options); 267 getopts($options);
268 $opt_h and usage(); 268 $opt_h and usage();
269 269
270 # default to all warnings if no flag is set 270 # default to all warnings if no flag is set
271 unless ($opt_A or $opt_a or $opt_D or $opt_d or $opt_e 271 unless ($opt_A or $opt_a or $opt_D or $opt_d or $opt_e
272 or $opt_f or $opt_H or $opt_l 272 or $opt_f or $opt_H or $opt_l
273 or $opt_m or $opt_n or $opt_O 273 or $opt_m or $opt_n
274 or $opt_o or $opt_P or $opt_p or $opt_r 274 or $opt_o or $opt_P or $opt_p or $opt_r
275 or $opt_S or $opt_s or $opt_X or $opt_x) { 275 or $opt_S or $opt_s or $opt_X or $opt_x) {
276 $opt_A = $opt_a = $opt_D = $opt_d = $opt_f = $opt_m = 276 $opt_A = $opt_a = $opt_D = $opt_d = $opt_f = $opt_m =
277 $opt_n = $opt_O = $opt_o = $opt_P = $opt_p = $opt_r = $opt_S = 277 $opt_n = $opt_o = $opt_P = $opt_p = $opt_r = $opt_S =
278 $opt_s = $opt_X = $opt_x = 1; 278 $opt_s = $opt_X = $opt_x = 1;
279 $opt_e = $opt_l = 1 if NETBSD; 279 $opt_e = $opt_l = 1 if NETBSD;
280 } 280 }
281} 281}
282 282
283 283
284sub verify_xref 284sub verify_xref
285{ 285{
286 my ($self, $page, $section, $pre, $post) = @_; 286 my ($self, $page, $section, $pre, $post) = @_;
287 if ("$page.$section" eq $self->{fn}) { 287 if ("$page.$section" eq $self->{fn}) {
288 $self->warning("Xref to itself (use .Nm instead)") if $opt_x; 288 $self->warning("Xref to itself (use .Nm instead)") if $opt_x;
289 } 289 }
290 # try to find corresponding man page 290 # try to find corresponding man page

cvs diff -r1.9 -r1.10 pkgsrc/textproc/mdoclint/files/Attic/mdoclint.1 (expand / switch to unified diff)

--- pkgsrc/textproc/mdoclint/files/Attic/mdoclint.1 2013/07/30 18:37:56 1.9
+++ pkgsrc/textproc/mdoclint/files/Attic/mdoclint.1 2013/07/30 18:50:07 1.10
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1.\" $OpenBSD: mdoclint.1,v 1.7 2009/04/13 19:06:38 jmc Exp $ 1.\" $OpenBSD: mdoclint.1,v 1.7 2009/04/13 19:06:38 jmc Exp $
2.\" $NetBSD: mdoclint.1,v 1.9 2013/07/30 18:37:56 wiz Exp $ 2.\" $NetBSD: mdoclint.1,v 1.10 2013/07/30 18:50:07 wiz Exp $
3.\" 3.\"
4.\" Copyright (c) 2001-2013 Thomas Klausner 4.\" Copyright (c) 2001-2013 Thomas Klausner
5.\" All rights reserved. 5.\" All rights reserved.
6.\" 6.\"
7.\" Redistribution and use in source and binary forms, with or without 7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions 8.\" modification, are permitted provided that the following conditions
9.\" are met: 9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright 10.\" 1. Redistributions of source code must retain the above copyright
11.\" notice, this list of conditions and the following disclaimer. 11.\" notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\" notice, this list of conditions and the following disclaimer in the 13.\" notice, this list of conditions and the following disclaimer in the
14.\" documentation and/or other materials provided with the distribution. 14.\" documentation and/or other materials provided with the distribution.
15.\" 15.\"
@@ -89,30 +89,26 @@ and @@ -89,30 +89,26 @@ and
89This option is off by default, 89This option is off by default,
90as these characters no longer pose any problems. 90as these characters no longer pose any problems.
91.It Fl h 91.It Fl h
92Display usage. 92Display usage.
93.It Fl l 93.It Fl l
94Warn about unknown libraries used as arguments to Lb. 94Warn about unknown libraries used as arguments to Lb.
95.It Fl m 95.It Fl m
96Warn if man page is not in 96Warn if man page is not in
97.Xr mdoc 7 97.Xr mdoc 7
98format. 98format.
99.It Fl n 99.It Fl n
100Warn when the .Nd macro's argument ends in a dot, that is 100Warn when the .Nd macro's argument ends in a dot, that is
101.Sq \&. . 101.Sq \&. .
102.It Fl O 
103Warn about unsorted 
104.Dq .It 
105macros. 
106.It Fl o 102.It Fl o
107Warn when the .Os macro has an argument (it shouldn't have one at 103Warn when the .Os macro has an argument (it shouldn't have one at
108least in the base system, because on 104least in the base system, because on
109.Nx 105.Nx
110the current version is default). 106the current version is default).
111.It Fl P 107.It Fl P
112Warn about paragraph problems, like empty lines or .Pp macros before 108Warn about paragraph problems, like empty lines or .Pp macros before
113section macros like .Ss and .Sh. 109section macros like .Ss and .Sh.
114.It Fl p 110.It Fl p
115Warn about possible punctuation problems at the end of macro arguments, 111Warn about possible punctuation problems at the end of macro arguments,
116abuse of .Ns to get punctuation directly next to a word, 112abuse of .Ns to get punctuation directly next to a word,
117and sentences not starting on a new line. 113and sentences not starting on a new line.
118.It Fl r 114.It Fl r