aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorpizzamig <pizzamig@FreeBSD.org>2019-06-10 21:54:40 +0800
committerpizzamig <pizzamig@FreeBSD.org>2019-06-10 21:54:40 +0800
commitf25e0729e730b308798d3c042b11d90e59637c5c (patch)
tree96cf0201db57b56b5cbe239843849dee00886478 /Tools
parentd8002b3a3e0dfe82f2a593cbaca999e767acb3fb (diff)
downloadfreebsd-ports-gnome-f25e0729e730b308798d3c042b11d90e59637c5c.tar.gz
freebsd-ports-gnome-f25e0729e730b308798d3c042b11d90e59637c5c.tar.zst
freebsd-ports-gnome-f25e0729e730b308798d3c042b11d90e59637c5c.zip
Tools/script/addport: Fix usage with multiple directories
PR: 238379 Submitted by: me Approved by: crees@
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/addport4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport
index a53c19a0b8ab..60ea68c80aa1 100755
--- a/Tools/scripts/addport
+++ b/Tools/scripts/addport
@@ -331,7 +331,9 @@ foreach my $thisdir (@dirs) {
# let's get our hands dirty.
if (! -d "ports") {
system("$svn co --depth empty $repo ports") && errx(1, "can't get ports root, aborting.");
- chdir "ports" or err(1,"ports");
+ }
+ chdir "ports" or err(1,"ports");
+ if (! -d "$category") {
system("$svn up --depth files $category") && errx(1, "can't get temporary category directory, aborting.");
}
chdir $category or err(1,"$category");