summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-06-23 18:10:21 +0000
committerwiz <wiz@pkgsrc.org>2014-06-23 18:10:21 +0000
commita19a8f62f5ff891732b206eebac8dd73b18a879e (patch)
treec8f7f933c510242266c1d2445cf29787f020610d /textproc
parente405d8ef107b2d2660c1c2f5a712f705b973446f (diff)
downloadpkgsrc-a19a8f62f5ff891732b206eebac8dd73b18a879e.tar.gz
Fix a bug in -F. Bump version.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/mdoclint/Makefile5
-rwxr-xr-xtextproc/mdoclint/files/mdoclint11
2 files changed, 7 insertions, 9 deletions
diff --git a/textproc/mdoclint/Makefile b/textproc/mdoclint/Makefile
index 02dd12ea70a..f2f38b3286a 100644
--- a/textproc/mdoclint/Makefile
+++ b/textproc/mdoclint/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.38 2014/05/29 23:37:34 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2014/06/23 18:10:21 wiz Exp $
-DISTNAME= mdoclint-1.29
-PKGREVISION= 1
+DISTNAME= mdoclint-1.30
CATEGORIES= textproc
MASTER_SITES= # none
DISTFILES= # none
diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint
index 509b932281b..e31f222df6c 100755
--- a/textproc/mdoclint/files/mdoclint
+++ b/textproc/mdoclint/files/mdoclint
@@ -1,7 +1,7 @@
#!@PERL5@
#
# $OpenBSD: mdoclint,v 1.42 2014/03/18 22:36:30 miod Exp $
-# $NetBSD: mdoclint,v 1.48 2014/03/31 08:40:47 wiz Exp $
+# $NetBSD: mdoclint,v 1.49 2014/06/23 18:10:21 wiz Exp $
#
# Copyright (c) 2001-2013 Thomas Klausner
# All rights reserved.
@@ -407,12 +407,11 @@ sub set_section_header
sub process_and_save_line
{
- my $s;
- ($s, $_) = @_;
- my $result = $s->process_line($_);
+ my ($s, $input) = @_;
+ my $result = $s->process_line($input);
# note that process_line chomps \n, then re-adds it,
# so we detect a change on last lines without a \n.
- if ($result ne $_) {
+ if ($result ne "$input") {
$s->{changes} = 1;
}
push(@{$s->{all}}, $result);
@@ -464,7 +463,7 @@ sub process_line
if ($s->{mandoc_p}) {
if (/^\.Sh\s+(.*)$/o) {
- my $line = $_;
+ my $line = $_;
$s->set_section_header($1);
return "$line\n";
}