diff options
author | Chris Rees <crees@FreeBSD.org> | 2013-05-12 16:13:12 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2013-05-12 16:13:12 +0000 |
commit | 36897c327bd0d0d2e83ef9243545bd21d24ed038 (patch) | |
tree | 8f53d9b9d0552e9bc3fce6ef32c53f1090ebcc4c /Tools | |
parent | b44bbfd32466bf2a3622fd35c19288717b4f7f0f (diff) | |
download | ports-36897c327bd0d0d2e83ef9243545bd21d24ed038.tar.gz ports-36897c327bd0d0d2e83ef9243545bd21d24ed038.zip |
Notes
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) { |