diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-10-09 18:52:58 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-10-09 18:52:58 +0000 |
commit | 10cda8a2e502c1dd987d1ac29efa84e655c3d196 (patch) | |
tree | 5fafafd58be14bbe0969633de445f5c951e72d82 /ports-mgmt/portlint/src/portlint.pl | |
parent | - unconditionally install the dynlinked version (the static version (diff) |
Update to 2.7.4.
* Add a warning if only one MASTER_SITE is configured [1]
* Check for misspellings of INSTALLS_SHLIB [2]
PR: 87141 [2]
Requested by: kris [1]
Notes
Notes:
svn path=/head/; revision=144699
Diffstat (limited to '')
-rw-r--r-- | ports-mgmt/portlint/src/portlint.pl | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl index 662fcd16ff6a..9d305eb2e794 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$ -# $MCom: portlint/portlint.pl,v 1.82 2005/08/19 17:06:55 marcus Exp $ +# $MCom: portlint/portlint.pl,v 1.86 2005/10/09 18:51:51 marcus Exp $ # use vars qw/ $opt_a $opt_A $opt_b $opt_C $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 = 7; -my $micro = 3; +my $micro = 4; sub l { '[{(]'; } sub r { '[)}]'; } @@ -1022,6 +1022,17 @@ sub checkmakefile { } # + # whole file: check for common typos + # + print "OK: checking for common typos.\n" if ($verbose); + if ($whole =~ /^(INSTALL_SHLIBS?).?=/m || + $whole =~ /^(INSTALLS_SHLIBS).?=/m) { + my $lineno = &linenumber($`); + &perror("FATAL: $file [$lineno]: $1 should be spelled ". + "INSTALLS_SHLIB."); + } + + # # whole file: use of .elseif # print "OK: checking for use of .elseif.\n" if ($verbose); @@ -1733,6 +1744,15 @@ DIST_SUBDIR EXTRACT_ONLY } } + # check number of MASTER_SITES + if ($makevar{MASTER_SITES} ne '') { + my @sites = split(/\s+/, $makevar{MASTER_SITES}); + if (scalar(@sites) == 1) { + &perror("WARN: $file: only one MASTER_SITE configured. ". + "Consider adding additional mirrors."); + } + } + # check the URL if (($tmp =~ /\nMASTER_SITES[+?]?=[ \t]*([^\n]*)\n/ && $1 !~ /^[ \t]*$/) || ($makevar{MASTER_SITES} ne '')) { |