From 963c3b759e6ca5e88e479d3bb188438177eef587 Mon Sep 17 00:00:00 2001 From: crees Date: Sun, 3 Mar 2013 16:55:54 +0000 Subject: Apparently some people override PKGCATEGORY, so manually extract it from CATEGORIES again. Discovered by: dinoex --- Tools/scripts/addport | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Tools') diff --git a/Tools/scripts/addport b/Tools/scripts/addport index 8bfc7ac65d36..302052fae55d 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -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 { -- cgit