diff options
author | crees <crees@FreeBSD.org> | 2013-05-13 00:13:12 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2013-05-13 00:13:12 +0800 |
commit | f261bff6afebffbd708fb317d4af5aaf759905e7 (patch) | |
tree | 8f53d9b9d0552e9bc3fce6ef32c53f1090ebcc4c /Tools | |
parent | f6261350a79e3f5749402c25c01cace70189aea4 (diff) | |
download | freebsd-ports-gnome-f261bff6afebffbd708fb317d4af5aaf759905e7.tar.gz freebsd-ports-gnome-f261bff6afebffbd708fb317d4af5aaf759905e7.tar.zst freebsd-ports-gnome-f261bff6afebffbd708fb317d4af5aaf759905e7.zip |
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)
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 6 |
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) { |