diff options
author | marcus <marcus@FreeBSD.org> | 2003-11-22 20:38:55 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-11-22 20:38:55 +0000 |
commit | 0688779922ae28b9884a0e51dba86c896d55646e (patch) | |
tree | cf3f62a718a98b8fdae8617df8d1b670a71a81fa /devel/portlint | |
parent | e20a9f202df2ae756df4447b4208ed3044f8a809 (diff) | |
download | FreeBSD-ports-0688779922ae28b9884a0e51dba86c896d55646e.zip FreeBSD-ports-0688779922ae28b9884a0e51dba86c896d55646e.tar.gz |
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
Diffstat (limited to 'devel/portlint')
-rw-r--r-- | devel/portlint/Makefile | 2 | ||||
-rw-r--r-- | devel/portlint/src/portlint.1 | 3 | ||||
-rw-r--r-- | devel/portlint/src/portlint.pl | 15 |
3 files changed, 12 insertions, 8 deletions
diff --git a/devel/portlint/Makefile b/devel/portlint/Makefile index 6cad862..8d13998 100644 --- a/devel/portlint/Makefile +++ b/devel/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/devel/portlint/src/portlint.1 b/devel/portlint/src/portlint.1 index 65d4ad1..7256e3d 100644 --- a/devel/portlint/src/portlint.1 +++ b/devel/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/devel/portlint/src/portlint.pl b/devel/portlint/src/portlint.pl index a152887..5fe3cc1 100644 --- a/devel/portlint/src/portlint.pl +++ b/devel/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; |