svn commit: r317966 - head/Tools/scripts
Chris Rees
crees at FreeBSD.org
Sun May 12 16:13:13 UTC 2013
Author: crees
Date: Sun May 12 16:13:12 2013
New Revision: 317966
URL: http://svnweb.freebsd.org/changeset/ports/317966
Log:
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)
Modified:
head/Tools/scripts/addport
Modified: head/Tools/scripts/addport
==============================================================================
--- head/Tools/scripts/addport Sun May 12 16:05:10 2013 (r317965)
+++ head/Tools/scripts/addport Sun May 12 16:13:12 2013 (r317966)
@@ -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) {
More information about the svn-ports-all
mailing list