summaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portlint/src
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-01-07 06:42:55 +0000
committermarcus <marcus@FreeBSD.org>2004-01-07 06:42:55 +0000
commit5988e8775bdd75561e9c06383bc93aeb98ce008e (patch)
treea3d4719ba4c98ee96fe2ad8af871d944806cd909 /ports-mgmt/portlint/src
parentb1f53169d70b4a4a1aee6bbf20af0584a822e466 (diff)
downloadFreeBSD-ports-5988e8775bdd75561e9c06383bc93aeb98ce008e.zip
FreeBSD-ports-5988e8775bdd75561e9c06383bc93aeb98ce008e.tar.gz
Update to 2.5.6.
* Check to make sure RCS tags begin with capital letters [1] * Do not look direct command use in .for loops [2] PR: 60947 [1] Submitted by: leeym [1] petef [2]
Diffstat (limited to 'ports-mgmt/portlint/src')
-rw-r--r--ports-mgmt/portlint/src/portlint.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index 5d78ead..5889609 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -17,7 +17,7 @@
# OpenBSD and NetBSD will be accepted.
#
# $FreeBSD$
-# $Id: portlint.pl,v 1.35 2004/01/02 02:14:06 marcus Exp $
+# $Id: portlint.pl,v 1.36 2004/01/07 06:41:26 marcus Exp $
#
use vars qw/ $opt_a $opt_A $opt_b $opt_c $opt_h $opt_t $opt_v $opt_M $opt_N $opt_B $opt_V /;
@@ -40,7 +40,7 @@ $portdir = '.';
# version variables
my $major = 2;
my $minor = 5;
-my $micro = 5;
+my $micro = 6;
sub l { '[{(]'; }
sub r { '[)}]'; }
@@ -894,7 +894,7 @@ sub checkpatch {
while (<IN>) {
$whole .= $_;
}
- if ($committer && $whole =~ /\$([A-Za-z0-9]+)[:\$]/) {
+ if ($committer && $whole =~ /\$([A-Z][A-Za-z0-9]+)(:[^\n]+)?\$/) {
my $lineno = &linenumber($`);
&perror("WARN: $file [$lineno]: includes possible RCS tag \"\$$1\$\". ".
"use binary mode (-ko) on commit/import.") unless
@@ -1137,6 +1137,9 @@ ldconfig ln md5 mkdir mv patch perl rm rmdir ruby sed sh touch tr which xargs xm
# use of echo itself.
$j = $whole;
$j =~ s/([ \t][\@\-]{0,2})(echo|\$[\{\(]ECHO[\}\)]|\$[\{\(]ECHO_MSG[\}\)])[ \t]+("(\\'|\\"|[^"])*"|'(\\'|\\"|[^'])*')[ \t]*;?(\n?)/$1$2;$3/g; #"
+ # ignore variables names in .for loops, but not what's at the end
+ # of the for loop
+ $j =~ s/(\.for +)([^ ]*)( .*)/$1$3/;
foreach my $i (keys %cmdnames) {
# XXX This is a hack. Really, we should break $j up into individual
# lines, and go through each one.
OpenPOWER on IntegriCloud