Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2013 16:13:12 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317966 - head/Tools/scripts
Message-ID:  <201305121613.r4CGDCxG073340@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305121613.r4CGDCxG073340>