summaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-11-22 20:38:55 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-11-22 20:38:55 +0000
commitdebac8b3272f21a20ef76f44853598044fa90c4c (patch)
tree9ba0e0906a8f07aef63d362363ba2f2f22cc0c1c /ports-mgmt
parentStandardize all error messages to include the filename at least (and line (diff)
Ack, I knew I forgot something. Add a new -C argument that enables pedantic
committer mode. This is the identical to -A except it omits the new port checks. Requested by: eik
Notes
Notes: svn path=/head/; revision=94725
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portlint/Makefile2
-rw-r--r--ports-mgmt/portlint/src/portlint.13
-rw-r--r--ports-mgmt/portlint/src/portlint.pl15
3 files changed, 12 insertions, 8 deletions
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile
index 6cad862c46d3..8d13998b66fa 100644
--- a/ports-mgmt/portlint/Makefile
+++ b/ports-mgmt/portlint/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= portlint
-PORTVERSION= 2.5.2
+PORTVERSION= 2.5.3
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/portlint/src/portlint.1 b/ports-mgmt/portlint/src/portlint.1
index 65d4ad176f7f..7256e3d6f549 100644
--- a/ports-mgmt/portlint/src/portlint.1
+++ b/ports-mgmt/portlint/src/portlint.1
@@ -50,6 +50,9 @@ Some of the committers prefer
instead of
.Pa $(VARIABLE) ,
even though they are semantically same.
+.It Fl C
+Pedantic committer flag. This is equivalent to
+.Fl abct .
.It Fl c
Committer flag.
It will add several checks useful only for committers.
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index a15288772fc8..5fe3cc1236ab 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.29 2003/11/22 20:24:40 marcus Exp $
+# $Id: portlint.pl,v 1.30 2003/11/22 20:37:23 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 = 2;
+my $micro = 3;
sub l { '[{(]'; }
sub r { '[)}]'; }
@@ -90,6 +90,7 @@ usage: $prog [-AabchvtN] [-M ENV] [-B#] [port_directory]
-a additional check for scripts/* and pkg-*
-A turn on all additional checks (equivalent to -abcNt)
-b warn \$(VARIABLE)
+ -C pedantic committer mode (equivalent to -abct)
-c committer mode
-h show summary of command line options
-v verbose mode
@@ -107,16 +108,16 @@ sub version {
exit $major;
}
-getopts('AabchtvB:M:NV');
+getopts('AabCchtvB:M:NV');
&usage if $opt_h;
&version if $opt_V;
-$extrafile = 1 if $opt_a || $opt_A;
-$parenwarn = 1 if $opt_b || $opt_A;
-$committer = 1 if $opt_c || $opt_A;
+$extrafile = 1 if $opt_a || $opt_A || $opt_C;
+$parenwarn = 1 if $opt_b || $opt_A || $opt_C;
+$committer = 1 if $opt_c || $opt_A || $opt_C;
$verbose = 1 if $opt_v;
$newport = 1 if $opt_N || $opt_A;
-$usetabs = 1 if $opt_t || $opt_A;
+$usetabs = 1 if $opt_t || $opt_A || $opt_C;
$contblank = $opt_B if $opt_B;
$makeenv = $opt_M if $opt_M;