summaryrefslogtreecommitdiff
path: root/textproc/mdoclint
diff options
context:
space:
mode:
authorwiz <wiz>2013-06-02 11:58:36 +0000
committerwiz <wiz>2013-06-02 11:58:36 +0000
commitdc961bdb79167c79886dbd8b0987b07a1cbc37d6 (patch)
tree168bc4a6a3e5f9027a0b3ed5d78adc49d0786087 /textproc/mdoclint
parent0d9e6e64e2fbe8681ce14e0699a60b3b576dfb5b (diff)
downloadpkgsrc-dc961bdb79167c79886dbd8b0987b07a1cbc37d6.tar.gz
Remove "my" before $_, since perl 5.18 complains about it.
Diffstat (limited to 'textproc/mdoclint')
-rw-r--r--textproc/mdoclint/Makefile5
-rwxr-xr-xtextproc/mdoclint/files/mdoclint12
2 files changed, 9 insertions, 8 deletions
diff --git a/textproc/mdoclint/Makefile b/textproc/mdoclint/Makefile
index 5e1b7aeb2dc..a4e0251bdc8 100644
--- a/textproc/mdoclint/Makefile
+++ b/textproc/mdoclint/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2013/05/31 12:42:08 wiz Exp $
+# $NetBSD: Makefile,v 1.29 2013/06/02 11:58:36 wiz Exp $
-DISTNAME= mdoclint-1.20
-PKGREVISION= 1
+DISTNAME= mdoclint-1.21
CATEGORIES= textproc
MASTER_SITES= # none
DISTFILES= # none
diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint
index 22a826bdd89..364c2fa2178 100755
--- a/textproc/mdoclint/files/mdoclint
+++ b/textproc/mdoclint/files/mdoclint
@@ -1,7 +1,7 @@
#!@PERL5@
#
# $OpenBSD: mdoclint,v 1.14 2009/04/13 12:40:05 espie Exp $
-# $NetBSD: mdoclint,v 1.32 2013/03/26 20:26:18 wiz Exp $
+# $NetBSD: mdoclint,v 1.33 2013/06/02 11:58:36 wiz Exp $
#
# Copyright (c) 2001-2013 Thomas Klausner
# All rights reserved.
@@ -349,7 +349,7 @@ sub close
sub parse_macro_args
{
my ($s, $string) = @_;
- my $_ = $string;
+ $_ = $string;
my @params = ();
while (!/^$/) {
if (s/^\"(.*?)\"\s*//) {
@@ -404,7 +404,8 @@ sub set_section_header
sub process_and_save_line
{
- my ($s, $_) = @_;
+ my $s;
+ ($s, $_) = @_;
my $result = $s->process_line($_);
# note that process_line chomps \n, then re-adds it,
# so we detect a change on last lines without a \n.
@@ -416,7 +417,8 @@ sub process_and_save_line
sub process_line
{
- my ($s, $_) = @_;
+ my $s;
+ ($s, $_) = @_;
chomp;
# always cut trailing spaces
if (/\s+$/o) {
@@ -668,7 +670,7 @@ sub handle_file
{
my $parser = Parser->new($_[0]);
- while (my $_ = $parser->next_line) {
+ while ($_ = $parser->next_line) {
$parser->process_and_save_line($_);
}