summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2013-05-12 16:13:12 +0000
committerChris Rees <crees@FreeBSD.org>2013-05-12 16:13:12 +0000
commit36897c327bd0d0d2e83ef9243545bd21d24ed038 (patch)
tree8f53d9b9d0552e9bc3fce6ef32c53f1090ebcc4c /Tools
parentUpdate to 1.2.3. (diff)
Use MAINTAINER line for Submitted by: if Created by: does not exist.
Still prefer Created by because we still don't use real names in MAINTAINER lines (oh please let that change....) Submitted by: jgh (based on)
Notes
Notes: svn path=/head/; revision=317966
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/addport6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport
index 1bd23955e32b..c805c92dd0ee 100755
--- a/Tools/scripts/addport
+++ b/Tools/scripts/addport
@@ -104,8 +104,8 @@ my $rm = "rm";
my $keyword = '\$FreeBSD\\\$';
# vars required for commitfile
my $descr; my $portversion; my $pkgcomment;
-my $tmp; my $pkgcommentlen; my $comment; my $maintainer;
-my $tmp2; my $offset; my $commitfile = "";
+my $tmp; my $pkgcommentlen; my $comment; my $maintainer = "";
+my $maintaineraddr; my $tmp2; my $offset; my $commitfile = "";
my $moved = "";
$tmp = $tmp2 = $offset = 0;
@@ -276,9 +276,11 @@ foreach my $thisdir (@dirs) {
chomp;
die ("Old style Makefile headers detected") if (/^# (?:[Nn]ew )?[Pp]orts collection [Mm]akefile/);
($maintainer) = (m/^# Created by:\s+(\w.*)$/) if (/^# Created by/);
+ ($maintaineraddr) = (m/^MAINTAINER=\s+(\w.*)$/) if (/^MAINTAINER=/);
($portversion) = (m/^PORTVERSION=\s+(\w.*)$/) if (/^PORTVERSION=/);
}
close(MAKEFILE);
+ $maintainer = $maintaineraddr unless ($maintainer);
# Write out the data to the comment file.
open(AUTOFILL, "> $tmpdir/commitfile") or die("Can't open $tmpdir/commitfile for writing: $!");
if ($autofill_l) {