diff options
author | Will Andrews <will@FreeBSD.org> | 2000-12-19 08:16:06 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2000-12-19 08:16:06 +0000 |
commit | 6d4b5c5dada1b0360cfbd1141faa842cf7740a71 (patch) | |
tree | f7cffa31addfa4ea5738caeff82db079c0d05801 /Tools | |
parent | ebf6615d5c378def8df484dc5428a43b9f0b4f58 (diff) | |
download | ports-6d4b5c5dada1b0360cfbd1141faa842cf7740a71.tar.gz ports-6d4b5c5dada1b0360cfbd1141faa842cf7740a71.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 7 |
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; |