aboutsummaryrefslogtreecommitdiff
path: root/Tools/scripts/addport
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2012-08-31 18:40:40 +0000
committerChris Rees <crees@FreeBSD.org>2012-08-31 18:40:40 +0000
commit800b5d1d408f880192e5a28f00fe83d83af32479 (patch)
tree52b750cfa6f54d57a37e329a7597969cad4cf6eb /Tools/scripts/addport
parentaef06eda7d3950bd25bdd3edf8938d7d42c4808c (diff)
downloadports-800b5d1d408f880192e5a28f00fe83d83af32479.tar.gz
ports-800b5d1d408f880192e5a28f00fe83d83af32479.zip
Notes
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 0ef5527e1988..07193a2c7b5b 100755
--- a/Tools/scripts/addport
+++ b/Tools/scripts/addport
@@ -106,7 +106,7 @@ my $rm = "rm";
my $keyword = '\$FreeBSD\\\$';
# vars required for commitfile
my $descr; my $portversion; my $pkgcomment;
-my $tmp; my $pkgcommentlen; my $comment; my $orig;
+my $tmp; my $pkgcommentlen; my $comment; my $maintainer;
my $tmp2; my $offset; my $commitfile = "";
my $moved = "";
$tmp = $tmp2 = $offset = 0;
@@ -271,7 +271,7 @@ foreach my $thisdir (@dirs) {
open(MAKEFILE, "Makefile") or die("Can't open Makefile for reading: $!");
while(<MAKEFILE>) {
chomp;
- ($orig) = (m/^# Whom:\s+(\w.*)$/) if (/^# Whom:/);
+ ($maintainer) = (m/^MAINTAINER=\s+(\w.*)$/) if (/^MAINTAINER=/);
($portversion) = (m/^PORTVERSION=\s+(\w.*)$/) if (/^PORTVERSION=/);
}
close(MAKEFILE);
@@ -293,7 +293,7 @@ foreach my $thisdir (@dirs) {
}
print AUTOFILL $tmp;
print AUTOFILL "PR: ports/$autofill\n" if ($autofill != -1);
- print AUTOFILL "Submitted by: $orig" if ($autofill != -1);
+ print AUTOFILL "Submitted by: $maintainer" if ($autofill != -1);
close(AUTOFILL);
print "Okay, a commit log message was automatically generated for you.\n";
print "Now you will have a chance to edit it to make sure it's OK to use.\n";