summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2000-01-26 15:25:25 +0000
committerabs <abs@pkgsrc.org>2000-01-26 15:25:25 +0000
commitba27124c6e79d1058dd03a3fba400ea2a463784f (patch)
tree348e0397aa6d4cb410ddd707e3f74fcbb9922cde /pkgtools/pkglint
parent1690b5fd8ab5a0ff64e7f148fdea55115e74e89f (diff)
downloadpkgsrc-ba27124c6e79d1058dd03a3fba400ea2a463784f.tar.gz
fix lintpkgsrc -l usage - from Thomas Klausner
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r--pkgtools/pkglint/Makefile4
-rwxr-xr-xpkgtools/pkglint/files/lintpkgsrc.pl14
2 files changed, 7 insertions, 11 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 93d0cb0dc97..22de45188dd 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.40 2000/01/19 13:59:20 abs Exp $
+# $NetBSD: Makefile,v 1.41 2000/01/26 15:25:25 abs Exp $
#
-DISTNAME= pkglint-1.99
+DISTNAME= pkglint-2.00
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl
index 1f69fcedd49..aa20645079f 100755
--- a/pkgtools/pkglint/files/lintpkgsrc.pl
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
-# $NetBSD: lintpkgsrc.pl,v 1.19 2000/01/19 13:59:22 abs Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.20 2000/01/26 15:25:26 abs Exp $
# Written by David Brownlee <abs@netbsd.org>.
#
@@ -375,8 +375,8 @@ sub parse_makefile
# Continuation lines
#
- while ( substr($_,-1) eq "\\" )
- { substr($_,-2) = shift @data; }
+ while ( substr($_, -1) eq "\\" )
+ { substr($_, -2) = shift @data; }
# Conditionals
#
@@ -591,7 +591,7 @@ sub pkglint_all_pkgsrc
{
if (-f "$pkg/Makefile")
{
- if (!open(PKGLINT, "pkglint $pkglint_flags $pkg|"))
+ if (!open(PKGLINT, "cd $pkg ; pkglint $pkglint_flags|"))
{ &fail("Unable to run pkglint: $!"); }
@output = grep(!/^OK:/ &&
!/^WARN: be sure to cleanup .* work before/ &&
@@ -600,11 +600,7 @@ sub pkglint_all_pkgsrc
, <PKGLINT> );
close(PKGLINT);
if (@output)
- {
- print "===> $cat/$pkg\n",
- "pkglint $pkglint_flags $pkg\n",
- @output, "\n";
- }
+ { print "===> $cat/$pkg\n", @output, "\n"; }
}
}
close(CAT);