Date: Sun, 3 Mar 2013 16:55:55 +0000 (UTC) From: Chris Rees <crees@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313368 - head/Tools/scripts Message-ID: <201303031655.r23Gttd6009587@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: crees Date: Sun Mar 3 16:55:54 2013 New Revision: 313368 URL: http://svnweb.freebsd.org/changeset/ports/313368 Log: Apparently some people override PKGCATEGORY, so manually extract it from CATEGORIES again. Discovered by: dinoex Modified: head/Tools/scripts/addport Modified: head/Tools/scripts/addport ============================================================================== --- head/Tools/scripts/addport Sun Mar 3 16:52:56 2013 (r313367) +++ head/Tools/scripts/addport Sun Mar 3 16:55:54 2013 (r313368) @@ -237,9 +237,8 @@ foreach my $thisdir (@dirs) { } # Get the category name and make it suitable for use with svn - my $category; - $category = `$make -V PKGCATEGORY`; - chomp $category; + my @categories = split(/ /, `make -VCATEGORIES`); + my $category = $categories[0]; if ($interactive) { if (prompt("Port $portname will be put in category $category. OK? " )) { do {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303031655.r23Gttd6009587>