diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2010-09-01 17:32:54 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2010-09-01 17:32:54 +0000 |
commit | e302e890eadf8c1b5d87549258aceb362e3a0879 (patch) | |
tree | 371ddda423753327be3b9b3c742484f11c17883a | |
parent | 65f492a14442a59f6c5d5eedbe6c9f41a21b39d4 (diff) |
some very minor tweaks to bring us in line with mdoclint -r1.12 and
mdoclint.1 -r1.2; some minor os-specific differences remain
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint | 12 | ||||
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint.1 | 12 |
2 files changed, 11 insertions, 13 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint index e05bd17b902..125bc9d52ce 100644 --- a/regress/usr.bin/mdoclint/mdoclint +++ b/regress/usr.bin/mdoclint/mdoclint @@ -1,9 +1,9 @@ #!/usr/bin/perl # -# $OpenBSD: mdoclint,v 1.17 2010/08/31 17:58:16 jmc Exp $ -# $NetBSD: mdoclint,v 1.26 2008/11/22 14:47:28 wiz Exp $ +# $OpenBSD: mdoclint,v 1.18 2010/09/01 17:32:53 jmc Exp $ +# $NetBSD: mdoclint,v 1.12 2010/08/30 12:20:44 wiz Exp $ # -# Copyright (c) 2001-2008 Thomas Klausner +# Copyright (c) 2001-2010 Thomas Klausner # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -144,7 +144,7 @@ my $valid_date_re; mvme68k mvmeppc netwinder news68k newsmips next68k pc532 playstation2 pmax pmppc prep sandpoint sbmips sgimips shark sparc sparc64 sun2 sun3 vax walnut - x68k x86_64)); + x68k x86 x86_64 xen)); } my $a = join('|', @arches); $arches_re = qr{(?:$a)}o; @@ -160,7 +160,7 @@ my $valid_date_re; $valid_date_re = qr{\$Mdocdate\b}; } if (NETBSD) { - $valid_date_re = qr{(?:January|February|March|April|May|June|July|August|September|October|November|December)\s*[1-9][0-9]*,\s*(?:198[0-9]|199[0-9]|200[012345678])$}o; + $valid_date_re = qr{(?:January|February|March|April|May|June|July|August|September|October|November|December)\s*[1-9][0-9]*,\s*(?:198[0-9]|199[0-9]|200[0-9]|2010)$}o; } } @@ -347,7 +347,7 @@ sub process_line # nothing else to do return "$_\n"; } - if (/\$NetBSD\b.*\$/o) { + if (/[\$]NetBSD\b.*\$/o) { $s->{nxrcsidseen} = 1; # nothing else to do return "$_\n"; diff --git a/regress/usr.bin/mdoclint/mdoclint.1 b/regress/usr.bin/mdoclint/mdoclint.1 index 8dbd8d8ef7c..c85c752ea7f 100644 --- a/regress/usr.bin/mdoclint/mdoclint.1 +++ b/regress/usr.bin/mdoclint/mdoclint.1 @@ -1,7 +1,7 @@ -.\" $OpenBSD: mdoclint.1,v 1.8 2010/08/31 21:07:57 jmc Exp $ -.\" $NetBSD: mdoclint.1,v 1.3 2003/05/09 09:22:05 wiz Exp $ +.\" $OpenBSD: mdoclint.1,v 1.9 2010/09/01 17:32:53 jmc Exp $ +.\" $NetBSD: mdoclint.1,v 1.2 2009/04/13 22:18:13 wiz Exp $ .\" -.\" Copyright (c) 2001-2008 Thomas Klausner +.\" Copyright (c) 2001-2010 Thomas Klausner .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -25,7 +25,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: August 31 2010 $ +.Dd $Mdocdate: September 1 2010 $ .Dt MDOCLINT 1 .Os .Sh NAME @@ -56,9 +56,7 @@ between or after the cross-references. .It Fl D Warn about bad casing and architectures in the .Dt macro. .It Fl d -Warn about .Dd strings -that don't start -.Dq .Dd $\&Mdocdate . +Warn about bad date strings (in the .Dd macro). .It Fl e Warn about unsorted errors (for functions). .It Fl F |