summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-12-19 08:16:06 +0000
committerWill Andrews <will@FreeBSD.org>2000-12-19 08:16:06 +0000
commit6d4b5c5dada1b0360cfbd1141faa842cf7740a71 (patch)
treef7cffa31addfa4ea5738caeff82db079c0d05801 /Tools
parent- Update to version 0.05. (diff)
Add -g option to disable committing to CVSROOT/modules, useful if someone
is going to commit a large number of ports and doesn't want to bloat the repo any more than necessary. Later on I'll add support to modulesupdate to do multiple modules at the same time. I should check that script in CVS, but nobody's repocopied non-ports-specific tools to src yet to my knowledge so I can't do that.
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;