diff options
author | Chris Rees <crees@FreeBSD.org> | 2013-03-03 16:55:54 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2013-03-03 16:55:54 +0000 |
commit | bf3ef9b9abb43108ac8af1796e55335ec3fe46cf (patch) | |
tree | 80c02de3ce423c6275032334187db2ce4b650d8d /Tools | |
parent | cc39942d44842fa54595833a42b882e530047fb4 (diff) |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 5 |
1 files changed, 2 insertions, 3 deletions
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 { |