aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/addport7
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport
index 27554aa7e1b1..101f6e952e62 100755
--- a/Tools/scripts/addport
+++ b/Tools/scripts/addport
@@ -44,8 +44,9 @@ use strict;
my %opts;
-getopts('ad:fh:imns:tu:', \%opts);
+getopts('ad:fgh:imns:tu:', \%opts);
+my $nomodules = $opts{'g'};
my $distdir = $opts{'s'} if ($opts{'s'} ne "");
my $dir = $opts{'d'};
my $h = "freefall.FreeBSD.org";
@@ -235,7 +236,9 @@ foreach my $thisdir (@dirs) {
# commit the actual port.
chdir "$tmpdir/$category" or err(1, "$tmpdir/$category");
system("$cvs $n ci Makefile $portname") && errx(1, "cvs commit failed, aborting.");
- system("$ssh $perl /usr/local/bin/modulesupdate $module ports/$category/$portname") && errx(1, "adding port to modules failed, aborting.");
+ if (!$nomodules) {
+ system("$ssh $perl /usr/local/bin/modulesupdate $module ports/$category/$portname") && errx(1, "adding port to modules failed, aborting.");
+ }
}
print <<EOF;