summaryrefslogtreecommitdiff
path: root/Tools/scripts/addport
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-01-07 07:25:18 +0000
committerWill Andrews <will@FreeBSD.org>2001-01-07 07:25:18 +0000
commit759fa23f72a84890d0f663b27c71b0d9e6f533a1 (patch)
tree01d958fb5cb7da8ec0ba49efa6b1b624c4a9cd50 /Tools/scripts/addport
parentAdd p5-BerkeleyDB 0.12, perl5 interface to the Berkeley DB package (diff)
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
Notes
Notes: svn path=/head/; revision=36877
Diffstat (limited to 'Tools/scripts/addport')
-rwxr-xr-xTools/scripts/addport6
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);