aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-01-02 07:12:31 +0800
committerwill <will@FreeBSD.org>2001-01-02 07:12:31 +0800
commitcc19916da9fd2b2476a08b9f9f6b638fe463982c (patch)
tree9c1cf9d4d0df2ecebb61edf7e6aa1024df71c682 /Tools
parent5ab9d1d57e5b22ec49aa09e8cd99b3930b1b8934 (diff)
downloadfreebsd-ports-gnome-cc19916da9fd2b2476a08b9f9f6b638fe463982c.tar.gz
freebsd-ports-gnome-cc19916da9fd2b2476a08b9f9f6b638fe463982c.tar.zst
freebsd-ports-gnome-cc19916da9fd2b2476a08b9f9f6b638fe463982c.zip
Fix breakage when someone uses -t option: pass DISTDIR environment variable
to the extra testing's make procs. Fix _stupid_ mistake where -n option had no effect on hindering ``cvs add'' and CVSROOT/modules updating. Cosmetics; remove extra space in generated commit log message and fix the usage section's style in regards to options that take arguments. Add missing -g option's mention. Submitted by: assar (DISTDIR, CVSROOT/modules updating routine bugs)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/addport16
1 files changed, 9 insertions, 7 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport
index 0cffae1911b1..551bb8e6aa74 100755
--- a/Tools/scripts/addport
+++ b/Tools/scripts/addport
@@ -127,8 +127,8 @@ if ($addlchk && -f $portlint) {
push(@commands, "$portlint $plint_args");
push(@commands, "$make $passenv FETCH_BEFORE_ARGS='-btA' checksum") if !$nofetch;
if ($more_testing) {
- push(@commands, "$make distclean");
- push(@commands, "$make build");
+ push(@commands, "$make $passenv distclean");
+ push(@commands, "$make $passenv build");
}
if (!$nomkdir) {
chdir $tmpdir;
@@ -261,7 +261,7 @@ foreach my $thisdir (@dirs) {
$pkgcomment = $pkgcomment . "\n\n" if ($autofill != -1);
# Write out the data to the comment file.
open(AUTOFILL, "> $tmpdir/commitfile") or die("Can't open $tmpdir/commitfile for writing: $!");
- print AUTOFILL "Add $portname $portversion, $pkgcomment";
+ print AUTOFILL "Add $portname $portversion,$pkgcomment";
print AUTOFILL "PR: $autofill\n" if ($autofill != -1);
print AUTOFILL "Submitted by: $orig" if ($autofill != -1);
close(AUTOFILL);
@@ -294,8 +294,8 @@ foreach my $thisdir (@dirs) {
}
chdir $category or err(1,"$category");
system("$cp -PRp $thisdir .");
- system("$cvs add `find $portname -type d | grep -v CVS`") && errx(1, "cvs add for dirs failed, aborting.");
- system("$cvs add `find $portname -type f | grep -v CVS`") && errx(1, "cvs add for files failed, aborting.");
+ system("$cvs $n add `find $portname -type d | grep -v CVS`") && errx(1, "cvs add for dirs failed, aborting.");
+ system("$cvs $n add `find $portname -type f | grep -v CVS`") && errx(1, "cvs add for files failed, aborting.");
# figure out where the port name belongs in category Makefile
my @ports = &lsports;
@@ -328,7 +328,7 @@ foreach my $thisdir (@dirs) {
# commit the actual port.
chdir "$tmpdir/$category" or err(1, "$tmpdir/$category");
system("$commitfile $cvs $n ci Makefile $portname") && errx(1, "cvs commit failed, aborting.");
- if (!$nomodules) {
+ if (!$nomodules && ($n ne "-n")) {
system("$ssh $perl /usr/local/bin/modulesupdate $module ports/$category/$portname") && errx(1, "adding port to modules failed, aborting.");
}
}
@@ -382,7 +382,8 @@ print <<EOF;
authors: <will\@FreeBSD.org>, <mharo\@FreeBSD.org>
SYNOPSIS
- $0 [-h host] [-u user] [-s distdir] [-acfilmnt] -d directory
+ $0 [-c commitfile] [-h host] [-l PR number] [-s distdir] [-s distdir]
+ [-afgimnt] -d directory
Where "directory" contains the comma-delimited list
of root directories of new ports that you wish to
@@ -394,6 +395,7 @@ OPTIONS
there are no problems. Recommended.
-c file Use file in place of normal log message.
-f Do not fetch the distfile.
+ -g Do not commit to CVSROOT/modules.
-h host Use a cvshost besides freefall.FreeBSD.org.
-i Interactive mode; allow more control over
where things are placed. This is required in