diff options
author | will <will@FreeBSD.org> | 2001-01-07 15:25:18 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-01-07 15:25:18 +0800 |
commit | b0aff6873fc3672fb8a152157ca85fd602782a8e (patch) | |
tree | 3f221b4bb2a4ac3360fc766ecd9d0cbae92fbbd1 /Tools | |
parent | 28a5cfbc2628f21e1642caf4a9bba363ef55a190 (diff) | |
download | freebsd-ports-gnome-b0aff6873fc3672fb8a152157ca85fd602782a8e.tar.gz freebsd-ports-gnome-b0aff6873fc3672fb8a152157ca85fd602782a8e.tar.zst freebsd-ports-gnome-b0aff6873fc3672fb8a152157ca85fd602782a8e.zip |
Fix two bugs: pass $passenv to make *always*; remember that the initial
join() in the autofill algorithm doesn't need a space.
Bugged by: alex
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index 551bb8e6aa74..c4b3042bc3df 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -123,7 +123,7 @@ if ($addlchk && -f $portlint) { $passenv = "DISTDIR=\"$distdir\"" if -d $distdir && $myhost ne "freefall.freebsd.org"; $passenv = "DISTDIR=\"$tmpdir\"" if $myhost eq "freefall.freebsd.org"; $passenv = $passenv . " PORTSDIR=\"$tmpdir\"" if !$nomkdir; - push(@commands, "$make clean check-categories"); + push(@commands, "$make $passenv clean check-categories"); push(@commands, "$portlint $plint_args"); push(@commands, "$make $passenv FETCH_BEFORE_ARGS='-btA' checksum") if !$nofetch; if ($more_testing) { @@ -247,7 +247,7 @@ foreach my $thisdir (@dirs) { $tmp = 0; $pkgcomment = ""; # Now reassemble the comment string. while ($commentArr[$tmp]) { - if ($tmp == $tmp2) { + if ($tmp == $tmp2 || $tmp == 0) { $pkgcomment = $pkgcomment . "\n"; $pkgcomment = join("", $pkgcomment, $commentArr[$tmp]); } else { @@ -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); |