aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-12-19 16:16:06 +0800
committerwill <will@FreeBSD.org>2000-12-19 16:16:06 +0800
commit7111c5bf04aca25236494cd3ac296d30ed2f376c (patch)
treeca69139ed675a1d5fca116545e7550712fb95f3f
parentad05b3792c45de43d0096adb2cc141bceadd9177 (diff)
downloadfreebsd-ports-gnome-7111c5bf04aca25236494cd3ac296d30ed2f376c.tar.gz
freebsd-ports-gnome-7111c5bf04aca25236494cd3ac296d30ed2f376c.tar.zst
freebsd-ports-gnome-7111c5bf04aca25236494cd3ac296d30ed2f376c.zip
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.
-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;
>2004-03-181-0/+1 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * USE_REINPLACE need be defined only when REINPLACE_CMD is used.trevor2003-11-171-1/+0 * Update to 2.0.4.marcus2003-07-302-2/+2 * Add gnet2 after a repo copy from gnet-glib2. gnet2 is the stable Glib-2marcus2003-07-127-154/+64 * Update to 1.1.9.marcus2003-07-05