summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2013-03-03 16:55:54 +0000
committercrees <crees@FreeBSD.org>2013-03-03 16:55:54 +0000
commit963c3b759e6ca5e88e479d3bb188438177eef587 (patch)
tree80c02de3ce423c6275032334187db2ce4b650d8d /Tools
parent1e331e4c29870575e5334b272473abfd0fcac8a7 (diff)
downloadFreeBSD-ports-963c3b759e6ca5e88e479d3bb188438177eef587.zip
FreeBSD-ports-963c3b759e6ca5e88e479d3bb188438177eef587.tar.gz
Apparently some people override PKGCATEGORY, so
manually extract it from CATEGORIES again. Discovered by: dinoex
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/addport5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport
index 8bfc7ac..302052f 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 {
OpenPOWER on IntegriCloud