diff options
author | steve <steve@FreeBSD.org> | 1999-02-22 03:01:21 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-02-22 03:01:21 +0000 |
commit | 90cd71f20ed34c847d0efac9b4b57793c0e0fad0 (patch) | |
tree | 0f96c18071be09d3e48d2b0796ff72e697049704 /ports-mgmt | |
parent | 7909a24bb45d6bd5b23db1894aca9f64d9e11a6a (diff) | |
download | FreeBSD-ports-90cd71f20ed34c847d0efac9b4b57793c0e0fad0.zip FreeBSD-ports-90cd71f20ed34c847d0efac9b4b57793c0e0fad0.tar.gz |
Handle x11-* categories correctly.
Reviewed by: maintainer
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portlint/src/portlint.pl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl index 8989f4c..1c38766 100644 --- a/ports-mgmt/portlint/src/portlint.pl +++ b/ports-mgmt/portlint/src/portlint.pl @@ -13,7 +13,7 @@ # bsd.port.mk. There are significant differences in those so you'll have # hard time upgrading this... # -# $Id: portlint.pl,v 1.1 1999/01/05 12:23:28 itojun Exp $ +# $Id: portlint.pl,v 1.2 1999/01/05 12:26:08 itojun Exp $ # $err = $warn = 0; @@ -688,18 +688,19 @@ EOF # check x11 in CATEGORIES if ($newxdef - && $tmp =~ /\nCATEGORIES[+?]?=[ \t]*([^\n]*)\n/ && $1 =~ /x11/) { + && $tmp =~ /\nCATEGORIES[+?]?=[ \t]*([^\n]*)\n/ + && ($foo = $1) =~ /x11/) { print "OK: checking x11 in CATEGORIES.\n" if ($verbose); - @i = split(/\s+/, $1); - if ($i[0] eq 'x11') { + @i = split(/\s+/, $foo); + if ($i[0] =~ /^x11\-?/) { ; # okay } elsif ($i[0] =~ /(chinese|japanese|korean|german|russian)/) { ; # okay } else { &perror("WARN: only specific kind of apps should ". "specify \"x11\" in CATEGORIES. ". - "do you mean just USE_XLIB? ". - "then remove \"x11\" from CATEGORIES."); + "Do you mean just USE_XLIB? ". + "Then remove \"x11\" from CATEGORIES."); } } |