aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-01-09 17:20:29 +0800
committerpeter <peter@FreeBSD.org>2000-01-09 17:20:29 +0800
commitc296620d565acb1a72295e78349bf7ce2f7c2d7f (patch)
treec8711035513c72e4599544dad928760c6b8d800b
parent6102975409fb8db83d2bce511d571fc2d368f01c (diff)
downloadfreebsd-ports-gnome-c296620d565acb1a72295e78349bf7ce2f7c2d7f.tar.gz
freebsd-ports-gnome-c296620d565acb1a72295e78349bf7ce2f7c2d7f.tar.zst
freebsd-ports-gnome-c296620d565acb1a72295e78349bf7ce2f7c2d7f.zip
Allow a second whitespace-delimited word on an access line to override
the email address.
-rwxr-xr-xCVSROOT/commitmail.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/CVSROOT/commitmail.pl b/CVSROOT/commitmail.pl
index 8a8c5c8c9680..923dfbf25b34 100755
--- a/CVSROOT/commitmail.pl
+++ b/CVSROOT/commitmail.pl
@@ -14,7 +14,11 @@ while (<ACCESS>) {
if ($words[0] =~ /^[#\/;]/) {
next;
}
- push @names, $words[0];
+ if ($words[1]) {
+ push @names, $words[1];
+ } else {
+ push @names, $words[0];
+ }
}
$list = join(" ", @names);
if ($list ne '') {