From 6d4b5c5dada1b0360cfbd1141faa842cf7740a71 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Tue, 19 Dec 2000 08:16:06 +0000 Subject: 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. --- Tools/scripts/addport | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Tools') 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 <