svn commit: r313368 - head/Tools/scripts
Chris Rees
crees at FreeBSD.org
Sun Mar 3 16:55:55 UTC 2013
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 {
More information about the svn-ports-all
mailing list